Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: gerrit broekhuis
  Where is gerrit broekhuis?
 holten
 Netherlands
 gerrit broekhuis
 To: Raphael Stueer
  Where is Raphael Stueer?
 Bochum
 Germany
 Raphael Stueer
 Tags
Subject: RE: PDF Problem caused by REPORTBEHAVIOR 90
Thread ID: 192822 Message ID: 192872 # Views: 41 # Ratings: 0
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Friday, September 05, 2008 3:30:38 PM         
   


> 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

Hi,

Clear the report's DataEnvironment. Save the cleaned report and your PDF can be created. It has nothing to do with REPORTBEHAVIOUR 80.

Regards, Gerrit



COMPLETE THREAD
PDF Problem caused by REPORTBEHAVIOR 90 Posted by Raphael Stueer @ 9/5/2008 12:02:38 PM
RE: PDF Problem caused by REPORTBEHAVIOR 90 Posted by gerrit broekhuis @ 9/5/2008 3:30:38 PM
RE: PDF Problem caused by REPORTBEHAVIOR 90 Posted by Raphael Stueer @ 9/5/2008 4:06:01 PM
RE: PDF Problem caused by REPORTBEHAVIOR 90 Posted by gerrit broekhuis @ 9/5/2008 5:00:42 PM
RE: PDF Problem caused by REPORTBEHAVIOR 90 Posted by Cathy Pountney @ 9/5/2008 4:33:06 PM
RE: PDF Problem caused by REPORTBEHAVIOR 90 Posted by Jim Tooley @ 9/14/2008 2:44:39 AM