'Print' to screen in Windows environment
Kenneth Brody
kenbrody at spamcop.net
Thu Nov 12 09:59:29 PST 2015
On 11/12/2015 12:26 PM, Bob Simcoe via Filepro-list wrote:
> I used the same technic as Rick to create the text file, but then I use Printwiz to turn it into a PDF, then Adobe Reader displays a PDF on the screen. The PDF can then be printed, emailed, faxed etc. I use this because the txt file doesn't accept the print codes of the filepro outout, printwiz does. The txt to PDF process is not noticeable to the user.
>
> Here's a sample of my code to print a pdf of selected Invoice to the screen.
>
> ::putenv "invno",1 '1 is the invoice number just entered:
> ::ptxtfile = "C \stprt\Inv" & 1 & ".txt":
> ::pdffile = "C \stprt\Inv" & 1 & ".pdf":
> :'print as txt file to C \stprt directory
> ::system "\fp\dreport SavedInvoicedLineItems -f InvoiceF2 -v sInvoiceFile -ij -a -p" < ptxtfile:
> :'use printwiz to generate pdf from txt output
> ::system "C \Program Files\Rasmussen Software, Inc\Print Wizard 4\printwiz" < ptxtfile < "/pdf /q":
> :'use Reader to display & process pdf file
> ::system "start AcroRd32.exe" < pdffile:
>
> I use this routine for most of my print outs, it's nice because I can direct the printout to any printer, even my home printers if I'm remote. What's good and bad, is that it does save the txt and pdf files.
With filePro 5.7.03 or later, this could be reduced to:
system "\fp\dreport SavedInvoicedLineItems -f InvoiceF2 -v sInvoiceFile
-ij -a -pc fpml -p PDF:[open]"
--
Kenneth Brody
More information about the Filepro-list
mailing list