> Hi experts,
>
> I have encountered a strange problem: When I changed the REPORTBEHAVIOUR from 80 to 90 to use the new reportlisteners the conversion of the reports to PDF does not work any more. The page preview of the report is working fine, as well as normal printing on our office printer. When I select a PDF printer the PDF is created and objects like lines are visible but no text can be seen. Not saving the printer settings together with the report as already suggested in this forum did not help.
>
> The code I used to preview the report with the new VFP9 reportlisteners is the following:
>
>
> loListener = NEWOBJECT("_ReportListener","_reportlistener.vcx")
> loListener.LISTENERTYPE = 1
> loListener.PRINTJOBNAME = "MyJobName"
> oPreview = NEWOBJECT("frxpreviewinscreen","frxpreview")
> loListener.PreviewContainer = oPreview
> REPORT FORM (cMyReportFile) OBJECT loListener TO PRINTER PROMPT PREVIEW
>
>
> The old code I used before with REPORTBEHAVIOUR 80 was:
>
>
> DO FORM Seitenansicht NAME oPreview NOSHOW
> oPreview.CAPTION="Seitenansicht"
> REPORT FORM (cMyReportFile) TO PRINTER PROMPT PREVIEW WINDOW Seitenansicht
>
>
> Any ideas?
>
> Kind regards,
> Raphael
I'm not sure what is going on. I print reports to my PrimoPDF printer driver all the time, using REPORTBEHAVIOR 90, and I haven't had any problems.
Cathy Pountney
www.cathypountney.blogspot.com