Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bullzip to generate PDF file
Message
 
À
06/12/2008 16:38:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01365785
Message ID:
01365912
Vues:
26
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform