'Print' to screen in Windows environment
Bob Simcoe
bob at midcityoffice.com
Thu Nov 12 09:26:46 PST 2015
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.
Bob Simcoe
> -----Original Message-----
> From: Filepro-list [mailto:filepro-list-
> bounces+bob=midcityoffice.com at lists.celestial.com] On Behalf Of Rick via
> Filepro-list
> Sent: Thursday, November 12, 2015 11:47 AM
> To: Filepro-list at lists.celestial.com
> Subject: Re: 'Print' to screen in Windows environment
>
> I have a printer which sends to c:\hardcopy.txt so it's always on the local
> machine.
> The script from the menu runs the report than launches notepad
> c:\hardcopy.txt
>
> Rick Mitchell
>
>
>
> On Nov 11, 2015, at 7:25 PM, Robert T. Repko via Filepro-list wrote:
>
> > I have a client running version 5.0.05DN9 on a Windows based PC. I want to
> 'print' reports to the screen. I've done it for years on Unix but never had to
> do it in Windows. I have the Unix commands cat & less installed on the PC. I
> tried the same commands I used in Unix:
> >
> > |cat > c:\temp\view$$ & less c:\temp\view$$, but that failed.
> >
> > Since I'm not sure of the Windows equivalent of view$$ I tried:
> >
> > |cat > c:\temp\view.txt & less c:\temp\view.txt, but that also failed. I
> received the following error:
> >
> >
> >
> > Cannot Open Print Command
> >
> > |cat > c:\temp\view.txt & less c:\temp\view.txt: No such file or
> > |directory
> >
> >
> >
> > C:\temp\view.txt does exist. If I manually populate view.txt I can cat
> view.txt and less view.txt without errors so I know those commands are
> working.
> >
> >
> >
> > In the menu I have -pq to allow selecting screen as a 'print' option. I don't
> want to select display, it doesn't display on the screen as nicely as less.
> >
> >
> >
> > Any ideas greatly appreciated.
> >
> > This email was scanned for viruses by ClamAV AntiVirus.
> >
> > -------------- next part -------------- An HTML attachment was
> > scrubbed...
> > URL:
> > <http://mailman.celestial.com/pipermail/filepro-list/attachments/20151
> > 111/2a8debac/attachment.html>
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > Subscribe/Unsubscribe/Subscription Changes
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list