Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports to PDF
Message
From
14/09/1999 10:31:48
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00264266
Message ID:
00264444
Views:
14
I do this all the time. You will want to set your default printer to adobe.

SET CLASSLIB TO {Your location}\classes\utils.vcx
THISFORM.ADDOBJECT('ModiIni', 'CusIniFile',;
"c:\WINNT\system32spool\drivers\w32x86\2\__pdf.ini")

** Programmatically change the file name
pdffilename = {whatever you want the file to be called along with the location}
THISFORM.ModiIni.SetSetting("Acrobat PDFWriter", "PdfFileName", ;(m.FullFileName))
THISFORM.ModiIni.SetSetting("Acrobat PDFWriter", "bDocInfo", "0")

** Crystal calls
loApp = CREATEOBJECT("Crystal.CRPE.Application")
loReport = loApp.openreport("report.rpt")
loReport.DATABASE.verify
loReport.Printout(.F.,1)


Hope this helps!


>We are trying to print a Crystal Reports .rpt to a .PDF file. We are having a problem finding good documentation. Has anyone done this that is willing to share the code to open a Crystal .rpt and SET PRINTER to 'Acrobat PDFWriter' to write to a file on the hard drive?
>
>Thanks in advance.
>Steve McMahon
>ZDI
>San Diego
Previous
Reply
Map
View

Click here to load this message in the networking platform