Answered by:
Save a document as PDF to a network drive

Question
-
Hi..
I am not a FoxPro developer but would like to know if it is possible to save a document as a PDF, that is rendered to the screen. Can it be saved to a network location that everyone has access to?
The user is only supposed to print it. But when they close the document, I would like the program to save it as PDF.
Any code snippet will be greatly appreciated.
Thanks!
Wednesday, August 7, 2013 8:36 PM
Answers
-
There are different options:
1) Get foxypreviewer, You will have an option to save a report as PDF
2) Other Applications, out from VFP work as printers
> SCANSOFT
> PDFFACTORY
> PDFMAILER
> Others
For #2, you dont need to be a developer, just to select those as printers, however, they are not free, while FOXYPREVIEWER is.
- Proposed as answer by Pavel Celba Wednesday, August 7, 2013 10:45 PM
- Marked as answer by Pavel Celba Saturday, August 31, 2013 10:20 AM
Wednesday, August 7, 2013 9:48 PM
All replies
-
There are different options:
1) Get foxypreviewer, You will have an option to save a report as PDF
2) Other Applications, out from VFP work as printers
> SCANSOFT
> PDFFACTORY
> PDFMAILER
> Others
For #2, you dont need to be a developer, just to select those as printers, however, they are not free, while FOXYPREVIEWER is.
- Proposed as answer by Pavel Celba Wednesday, August 7, 2013 10:45 PM
- Marked as answer by Pavel Celba Saturday, August 31, 2013 10:20 AM
Wednesday, August 7, 2013 9:48 PM -
Even the FoxyPreviewer does not require to be programmer. You must add just one line of code into your program.Wednesday, August 7, 2013 10:46 PM
-
Can you provide some code snippet? It would really help.
Thanks a lot for the information.
Thursday, August 8, 2013 10:24 PM -
So for FOXYPREVIEWER, when you say you will have an option to save, does it mean I will be able to save the document as PDF when the user closes the displayed report? or does the user need to save it manually?
Thanks!
Thursday, August 8, 2013 10:30 PM -
1) You have to download FoxyPreviewer http://foxypreviewer.codeplex.com/releases/view/49471
2) DO FoxyPreviewer.App && Note: Make sure FoxyPreviewer.App is on the path or current directory
REPORT FORM &lc_frx PREVIEWThursday, August 8, 2013 11:32 PM -
So for FOXYPREVIEWER, when you say you will have an option to save, does it mean I will be able to save the document as PDF when the user closes the displayed report? or does the user need to save it manually?
Thanks!
You have both options.Friday, August 9, 2013 12:07 PM -
I am inserting the toolbar from foxypreviewer, by clicking on svae, the save as options pop up
Friday, August 9, 2013 12:48 PM -
It may not be of much importance, as you already got good answers, but you said:
> save a document as a PDF
VFP is not Word or Excel, it does not handle documents. Maybe you talk about printer output, this is called report, also in dotNET as in SQL Server Reporting Services, in Access, in other languages.
A Report can be printed to a PDF as Benny already said. You can do that from any application having a print dialog, and there are also free PDF printers. That's the easiest solution.
Benny also showed the foxypreviewer toolbar, the user can choose to print from the preview, this is not a choice about saving instead of printing, you can save in any format supported, still are in preview, can navigate pages, etc. and print or leave the preview without printing. So the user can do anything in preview mode.
If you are looking for something doing a PDF additional to printing, only when printing, then there are report listeners, which can also be chained to report with several destinations. Besides foxypreviewer, there also is Report Sculptor, see http://www.report-sculptor.com/
Bye, Olaf.
Olaf Doschke (Setmics)
- Edited by Olaf Doschke Saturday, August 10, 2013 7:54 PM
Saturday, August 10, 2013 7:52 PM