Link to home
Start Free TrialLog in
Avatar of K3HT
K3HT

asked on

Best Software for printing to PDF via vFP

I need a recommendation for something that I can use to print documents to PDF via vfp.  I need something that will work in vFP versions 6,8,9.

Thanks in advance.
Avatar of fcarandangjr
fcarandangjr
Flag of United States of America image

try this post from CaptainCyrill...

download from http://www.pdffactory.com

You will set it up as a printer and print anything to that "printer" which will create a PDF file for you.
Avatar of K3HT
K3HT

ASKER

can you supply the name of the file to it via VFP?  thats the deal, we have ACROBAT so we can just print to it, the problem is it needs to be automatic without user intervention.
Avatar of Cyril Joudieh
http://www.pdffactory.com made a lot of people happy.

You install the package. Set it up as a printer. Print to that PDF Printer and Voila.
Avatar of K3HT

ASKER

"can you supply the name of the file to it via VFP?  thats the deal, we have ACROBAT so we can just print to it, the problem is it needs to be automatic without user intervention."

Im going to demo this product, but if anyone knows the answer to this comment please advise.


We have been using  Amyuni PDF creator with success for years, and yes you can specify the outpufile name at every pass. We can generate thousands of invoices per hour (and some of them up to 100 pages)  http://www.amyuni.com/en/products/pdf_converter/index.html
What do you mean with 'documents'?
Are you talking about vfp reports, or something else?
I have two small programs that create pdf files:
- One creates pdf files from vfp reports, using only two free tools;
- the other program I have is to print word documents from vfp into pdf.

would any of these programs help you in anyway?


Nuno Ruivo
While using Automation, you can direct any output to the PDF printer whether it's Word, Excel, VFP Reports, ...
Avatar of K3HT

ASKER

right, I understand the whole PDF printer thing... my problem is that the program (vfp) needs to be able to the tell teh PDF creator the name when it outputs the report.   This way it can run without user intervention... Thanks to thoose who replied with program suggestions, I will demo them and apply points appropriately.  if anyone else has recommendation on software, please let me know.
ASKER CERTIFIED SOLUTION
Avatar of mikegagnon
mikegagnon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is what I use. Been using it with no issues for the last several years.

First, go to http://www.west-wind.com/presentations/pdfwriter/pdfwriter.htm and download the zip file at roughly mid page.

Next, open the zip file, save the wwpdf.prg file to your desired directory.

Next, add the saved version of wwpdf.prg to your project. If you are not using a project, but instead a straight prg, just modify the "do" command below by adding the full folder path in front of wwpdf.prg

Just place this line somewhere near the start of your code:

Do wwpdf.prg

And when you  want to actually create a pdf file out of a foxpro report, just issue the following commands:

SELECT [the alias name of the table you are reporting on]
oPDF = CREATE("wwPDF50")
lCreatePDF = oPDF.PrintReport("dummyreport.frx", "c:\dummydir\dummypdf.pdf")
IF lCreatePDF = .f.
    WAIT WINDOW "Error: There was an error creating the pdf file"
    RETURN
ENDIF

One last note is to make sure that when you save your report, you have the output printer set to the Acrodbat PDF Writer. Do this while you have the report form open by selecting File - Page Setup - Print Setup - and under the name of the printer, select Acrobat PDF Writer

Hope I was of help to you.
K3HT, did you get the answer you were looking for?
Avatar of K3HT

ASKER

There was allot of good answers, I need to review some of these items before I assign credit, ill close this by the end of the week, thanks everyone for their assistance.

I let everyone know if I have any questions
is there anything else (Free) that might suggest that i try instead of print2pdf ?  
I was the original question poster although under a different username.  I know use pdf995, its almost free only 10 bucks.  You can edit an ini file to print the pdf file to any location you like.