*-- First cursor[NOT Working with the report listener?] CREATE CURSOR cCust (cID c(5), cName C(50)) INSERT INTO cCust VALUES (1,'asdasdasd') SELECT cCust *-- Common code lolistener = .null. do(_reportoutput) with 5, lolistener lolistener.targetfilename = "bob.html" lolistener.quietmode = .T. REPORT FORM 'rBob' OBJECT lolistenerAlso check if some grid has the focus before report. If it is so move the focus to some other control before REPORTing.
>*-- First cursor[NOT Working with the report listener?] >CREATE CURSOR cCust (cID c(5), cName C(50)) >INSERT INTO cCust VALUES (1,'asdasdasd') >>
>*-- Second cursor[Working with the report listener?] >SELECT cid, cname FROM customer WHERE cid = "12345" INTO CURSOR cCust >>
>*-- Common code >lolistener = .null. >do(_reportoutput) with 5, lolistener >lolistener.targetfilename = "bob.html" >lolistener.quietmode = .T. >REPORT FORM 'rBob' OBJECT lolistener >