Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Jim Tooley
  Where is Jim Tooley?
 Lodi
 Wisconsin - United States
 Jim Tooley
 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: 194142 # Views: 26 # Ratings: 0
Version: Visual FoxPro 9 Category: Reports and Printers
Date: Sunday, September 14, 2008 2:44:39 AM         
   


> 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


Raphael ...

I have similar problems. I am trying to use a 3rd party PDF driver - (pdfMachine). In VPF8 I found it created PDFs a lot faster that Acrobat. When I switched to VFP9 I started to have flaky problems. I inquired of the pdfMachine developer and here is his reply ...
......................................
Visual FoxPro 9 pdfMachine printing using Engine 8 works as it always has, with fast printing, searchable text in the PDF, and small file size as a result.

Engine 9 uses GDIPLUS which for some reason converts all text to images *before* printing.
This results in the PDF getting very large, the print being slow, none of the text of the PDF being searchable, and also results in the text being slightly pixilated / not clear.

So if possible, we recommend using print Engine 8.

Alternatively, you can make pdfMachine work with Engine 9, by getting pdfMachine to work as a Postscript printer.
Note: This will still result in a large file and slow print, because gdiplus will still be converting all the text to images before printing.
You will need to setup the following registry variable as a string value:
\HKEY_CURRENT_USER\Software\pdfMachine\PSAPPLIST
Set it to the name of the process that will be printing. In this case it is vfp9.exe
This will make pdfMachine work in postscript mode if that application prints.
To make the gdiplus text images less pixilated, you can increase the image DPI in the pdfMachine options, but this results in larger file size.
....................................

Open you problem PDFs and see if you can search in them. If not, they're images, not text.

Regards,

Jim



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