PDA

View Full Version : RC III Output to preview



Bob Worsley
20-May-2010, 08:32 PM
In RC II I had written a complete Webapp report using VRW and the API which worked quite well. I had the following set so the report would output to a pdf file:


vrwPDFExportOptions PDFExportOptions
Set pPDFExportOptions of hoReport to PDFExportOptionsNow, after converting to RC III the report hangs here:



Procedure OnComPreviewPage Integer iPage Integer iTotalPages
Send OnPageChanged iPage iTotalPages
End_Procedure
in cVisualReport.Pkg. I'm not sure if it's in preview mode or not, but it seems so and with the above properties set it shouldn't be. Am I missing something like maybe another property or is this a bug?
-Bob

Vincent Oorsprong
20-May-2010, 11:54 PM
Bob,

Code looks ok to me. I have no problems with exporting. Can you try without webapp if your report exports fine?

Bob Worsley
21-May-2010, 09:51 PM
Turns out I had a parameter set incorrectly, all seems to be working, thanks.
-Bob

Vincent Oorsprong
21-May-2010, 11:23 PM
Bob,

What parameter? Is this something we can improve the class with?

Bob Worsley
22-May-2010, 08:33 AM
Is this something we can improve the class with? I doubt it though I'm a little surprised the compiler didn't pick up on it. I had:


Set psFilterFunction to (psReportId(Self)) ('return '+sFilterFunction)And didn't see the quotes in the user doc for the report ID, they're a little on the light side. Should have been:


Set psFilterFunction (psReportId(Self)) to ('return '+sFilterFunction)

Vincent Oorsprong
22-May-2010, 11:32 AM
You can use an empty string or C_USEMAINVRWREPORTID.