Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fichiers
Recherche: 

Free/Simple VFP Report To PDF - Print2PDF
Paul James, Lifecycle Technologies, Inc.
Here is a free/fast/simple way to create PDF files directly from VFP. This is "black box" code/class that will run a VFP report and output it to a PDF. It will even automatically install any needed components for the user! It's easy to setup and to use! It is very flexible for programmers, easy for end-users, and well documented.
Créé le
Il y a 21 années
Téléchargements
18118
Type de fichier
Freeware
Résultat de votes
4.33/5.00
General information
Résultat de votes:
4.33/5.00 (12 rates) Évaluer cet item
Description
Print2PDF automatically selects the free Adobe Postcript printer driver to create a Postscript file (a temporary file in the VFP temporary path). It then calls the free DLL of Ghostscript to turn that Postscript file into a true PDF file. You can pass in the report name and the output name/path. This is an fast, free, and elegant solution to PDF generation from VFP. *** Version 1.1 *** This update adds the functionality of automatically locating the Ghostscript files. Also, the download now includes Ed Rauh's clsheap.prg. ***Version 1.2 *** Turned the program into a Class. Added logic to allow the user to install Postscript on-the-fly. Added logic to allow the user to install Ghostscript on-the-fly. Added logic to allow the user to install Adobe Acrobat on-the-fly. Added the ability to read most setting from the .INI file. Put logic in the Install() method and .INI file that will allow you to install any other program also. *** Version 1.3 *** Added support for printing "color" in pdf. You can change printer resolution on-the-fly. Made it callable as a "procedure". Complete Demo program (including dbf and report). Included the complete Ghostscript and Adobe Postscript installs. Corrected some logic bugs, and bugs in the .ini processing. Added the ability to use "variable" paths for Installs Added any new properties to .ini file. ++Please be aware that version 1.3 has CHANGED some .ini settings! *** Version 1.4 *** Some bug fixes and a timing fix to avoid error message when trying to delete temporary files. *** Sept. 2003 *** Fixed broken FTP Link to get this file. *** Dec. 2006 *** New FTP Link. *** August 2008 - Version 1.51 *** Updated to be more flexible when looking for Ghostscript and added some extra debugging code.
Créé par
Paul James, Lifecycle Technologies, Inc.

Commentaires
Where can I find the ClsHeap.prg? I try the Mailaddress to Ed Rauh (found in the print2pdf.prg) but this one is not correct. Klaus Hentschel, July 24, 2002

Search for clsheap (in summary $) and download clsheap.zip Matt Mathai, July 24, 2002

Thank you. My Fault, why I don't become this idea. Klaus Hentschel, July 24, 2002

Another question. Is it possible to create colored PDF? When I print to a PDF everything goes Gray. Klaus Hentschel, July 25, 2002

Sweet code, Paul. It is possible to get color text or shapes but I can't seem to get color images. In foxpro, you can set the color of each item on the form. The key (I think) is using a color printer's PS driver. I'm using the HP Color LaserJet PS (with port FILE under the DETAILS tab) that is included in windows. The only thing I couldn't get color was the image. If anyone figures that out, email me at karwash@hotmail.com with subject "universal thread" otherwise I won't see it with all the junk mail I get. Thanks again, Paul, this was just what I needed. Mike Albert, August 8, 2002

Please check out the newest version (1.3). Color printing is now enabled, also several fixes, updates, etc. Thanks - Paul Paul James, August 12, 2002

Nice update Works first time, Bob Lee Bob Lee, August 15, 2002

"Is it possible to create colored PDF?..." Klaus, use the HP Color LaserJet 8500 PS printer driver for producing the PS output and you will be able to produce colorful PDFs. We use this driver together with ghostscript in our PDF reporting engine. Zlatin Zlatev, August 15, 2002

This was very simple! I was having memory problems with FRX2WORD. This was free and it really works great! It comes out exactly like your report. Trish Middleton, October 10, 2002

Wonderful Product. Works much faster than Acrobat for creating pages but is there a way to convert more than the first seven pages of the report to a PDF. I can send a copy of the report if that would be helpful to diagnose the problem. Michael Brennan-White, November 6, 2002

Completely free and it's better than the Acrobat Writer/Distiller! Especially good for web reports... Claude Fuchs, November 8, 2002

Debugging Tip: Most problems are a result of a problem in your VFP report or your printer driver. If you will set the flag in the class so that "Report2PDF" does NOT delete the postscript file (.ps file), you can open the (.ps) file with Notepad and look for error messages. Also, look at my notes about manually creating and converting, because you can manually send your report to the Adobe printer driver (to create a .ps file), then via command-line you can call ghostscript to convert it. Thanks - Paul James Paul James, November 8, 2002

Works like a charm... excellent job. Jonathan Finch, November 14, 2002

Hey VFP people. Here's the question. If given just a PDF file, how can you print it out without opening the pdf? I'm asking here because I want to be able to print out multiple PDF files programmatically without opening them (hundreds of these bad boys). This may not involve FoxPro or not, but I thought you may know how to do this. Is this a matter of converting the pdf to a .ps file? If so, can I convert a pdf file to something that isn't postscript like PCL5e (postscript is bigger and slower when printing)? Any help is appreciated. Thanks again. Mike Albert, November 14, 2002

One option would be to retain the Postscript file (.ps) when creating the PDF. This class has a property to tell it whether to delete it or not. Then, as you pointed out, the postscript file could simply be "redirected" to a printer port even using something as low-tech as a batch file. Commercial Solutions: Freeware http://www.planetpdf.com/mainpage.asp?webpageid=545 http://www.planetpdf.com/mainpage.asp?webpageid=392 http://www.simtel.net/pub/pd/9929.html Shareware http://www.traction-software.co.uk/batchprint/index.html Around $65 http://www.addendum.de/bpE.html http://www.pdfstore.com/details.asp?ProdID=39 around $350 http://www.callassoftware.com/MadeToPrint_Acrobat/_e/mtp_01_e.htm Thanks - Paul James Paul James, November 14, 2002

For printing a .PDF without opening it, calling the Windows API seems to do the trick, assuming acrobat reader is installed. The Foxpro Foundation Classes have an _environ.vcx class library containing a _shellexecute class. Subclassing it with "open" changed to "print" in its Shellexecute method worked for me. Jonathan Finch, December 2, 2002

I've got it working great from activevfp now! Color and everything!! I did modify it slightly to accomodate a vfp web/COM mtdll environment along with reverting back to using the ghostscript dll (along with Ed Rauh's heap class) for scalability reasons... Claude Fuchs, February 16, 2005

When i use Print2pdf in Local machine it is working fine, but when i use same application thru Citrix ,then it is giving error : Error Loading Printer Driver Shz Khan, April 1, 2009

link broken :( Eduard Alexandru, May 7, 2009

I had install the latest GhostScript (gs811w32) and PSDrivers, the demo program can run in VFP8 but not VFP9, it propmt "File Access denied when delete PS file and old pdf file before rename in MAKEPDF(). Ivor Neo, June 30, 2014

Ajouter un commentaire
More downloads created from this member
Paul James, Lifecycle Technologies, Inc.
A FREE, very "usable" library for automating MS-Outlook. This "code based" class is very flexible and uses vfp tables to hold the Outlook properties, allowing you to support multiple versions, extend the capabilities, and make processing changes - all without requiring changes to the base code. It...
Créé le
Il y a 21 années
Téléchargements
5777
Type de fichier
Freeware
Résultat de votes
5.00/5.00
Paul James, Lifecycle Technologies, Inc.
A library of Functions to manipulate "Strings" in VFP. These functions could save you a "lot" of time. Includes SmartProper(), Character-Time functions, All-in-one StringCheck(), RemoveGarbage(), CleanTable(), SupportEMail(), etc.
Créé le
Il y a 21 années
Téléchargements
4293
Type de fichier
Freeware
Paul James, Lifecycle Technologies, Inc.
This is an example of use the TSAC ActiveX control embedded in a VFP form. It will allow you to embed a terminal services session "inside" your VFP application using only VFP and TSAC. I created these forms using VFP 7.0 and haven't tested under 6.0.
Créé le
Il y a 21 années
Téléchargements
1038
Type de fichier
Freeware
Paul James, Lifecycle Technologies, Inc.
Have you ever needed an "on-the-fly" way to "tone down" your color palette to suit the needs of a particular client running 256 colors. Are you running any remote clients using Terminal Services, PCAnywhere, Citrix, etc. who don't want to push high color bandwidth? You don't want to have multiple ...
Créé le
Il y a 21 années
Téléchargements
1295
Type de fichier
Freeware
Paul James, Lifecycle Technologies, Inc.
FoxFax is a class library that will allow you to send faxes from within Visual Foxpro. Because it is used as an object, it is very easy to set the desired properties, then call the methods. The download comes with a sample screen, table, and report.
Créé le
Il y a 22 années
Téléchargements
3821
Type de fichier
Freeware
Résultat de votes
5.00/5.00
Paul James, Lifecycle Technologies, Inc.
This utility will perform a "Search And Replace" on any text within any property on a form, report, menu, database, class library, etc. or on any field in a table. Searches can be "exact" or "case-sensitive". You can process an entire folder at one time.
Créé le
Il y a 22 années
Téléchargements
2138
Type de fichier
Freeware
Paul James, Lifecycle Technologies, Inc.
An easy-to-use and compact screen that allows you to have most of the functionality of the full VFP product at your fingertips at every client location! It includes Code Block, Report Nuke, table cleaning, duplicates removal, an open tables grid, a command window, and a command history. It...
Créé le
Il y a 22 années
Téléchargements
4206
Type de fichier
Freeware
Résultat de votes
5.00/5.00