Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bullzip to generate PDF file
Message
 
To
06/12/2008 16:38:04
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01365785
Message ID:
01365912
Views:
25
Better yet, use COM to drive Bullzip, as with the following
SET PRINTER TO NAME "Bullzip PDF Printer"
WAIT WINDOW "generating pdf document, please wait" nowait
oPDFPrinter = CREATEOBJECT("Bullzip.PDFPrinterSettings" )
WITH oPDFPrinter as "Bullzip.PDFPrinterSettings"
	*** output
                lCurDoc = "c:\temp\generatedpdf.pdf"
	.SetValue( "output", lCurDoc )
	.SetValue( "ConfirmOverwrite", "no" )
	.SetValue( "ShowSaveAs", "never" )
	.SetValue( "ShowSettings", "never" )
	.SetValue( "ShowPDF", "no" )
	*** document
	.SetValue( "Target", "printer" )
	.SetValue( "Title", "This is the Title" )
	.SetValue( "Author", "Jaime" )
	.SetValue( "UseThumbs", "no" )
	.SetValue( "Zoom", "100" )
	*** watermark
	.SetValue( "WatermarkText", "You can Watermark the resulting PDF" )
	.SetValue( "WatermarkRotation", "c2c" )
	.SetValue( "WatermarkFontName", "verdana.ttf" )
	.SetValue( "WatermarkColor", "#cccccc" )
	.SetValue( "WatermarkFontSize", "90" )
	.SetValue( "WatermarkOutlineWidth", 4 )
	.SetValue( "WatermarkLayer", "bottom" )
	WAIT WINDOW "Saving generated PDF document, please wait..." nowait
	.WriteSettings( .T. )
ENDWITH
REPORT FORM report1 TO PRINTER noconsole
Enjoy :-)

Jaime

>I am trying to use Bullzip to generate different PDF files. Something like this
>DO WHILE !EOF()
> Report Form report1 To Printer NOCONSOLE
>ENDDO
>
>How can I set by VFP program the folder to save PDF files?
>
>How can I set by VFP program variable output filename to PDF?
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform