How I used Printwizard
Bob Simcoe
bob at midcityoffice.com
Thu Nov 11 09:17:14 PST 2010
Bob
I emailed you and the List, a week or so ago asking how to get started using the Print Wizard Demo to turn my FP5.0, Windows, printouts with Print Codes to my HP-4050 to PDF's.
Here's what worked for me.
The the following input processing uses Reader to display the PDF generated by PW of an Invoice selected from Field 1 input, for viewing, printing, emailing etc. My only problem, Print Wizard UI solved, by allowing me to tell PW where to send the PDF. It had to be in C:\stprt. The PW default was in \Documents and Settings\……\Print Wizard 4 on my workstation. Our IT people don't allow workstations access to the path beginning with Documents & Settings (this took me a over an hours to figure out) . We're only allowed access to the C:\stprt directory.
Line 8 did the conversion perfectly.
Also, unexpected, I was working on this from home using gotomypc, and I was able to easily print the pdf to the dumb windows printer attached to my laptop.
Everyone here loves the results, and I know PW can do much more. There are 11 of us, should we purchase 1 Print Wizard 4 for each, or is there a version to put on the server?
Note: I always program on a Stand file in Add Records Mode. The TAB to exit, I kept from the Tandy Accounting Package days. This is just test processing, if a existing
invoice number wasn't entered, Reader would just present a blank. FP is on the S Drive.
1 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: end
2 ------- - - - - - - - - - - - - - - - -
@wlf1 ◄ If: @sk eq "rtab"
Then: delete ; close ; exit
3 ------- - - - - - - - - - - - - - - - -
◄ If: 'save inputed Invoice Number for Output Selection
Then: putenv "invno",1
4 ------- - - - - - - - - - - - - - - - -
◄ If: 'name the output txt file with the actual Invoice Number
Then: ptxtfile = "C:\stprt\Inv" & 1 & ".txt"
5 ------- - - - - - - - - - - - - - - - -
◄ If: 'name the output pdf file
Then: pdffile = "Inv" & 1 & ".pdf"
6 ------- - - - - - - - - - - - - - - - -
◄ If: 'print HP-4050 output as txt file to C:\stprt directory
Then: system "\fp\dreport SILines -f ILines -v sILines -ij -a -p" < ptxtfile
7 ------- - - - - - - - - - - - - - - - -
◄ If: 'change directory
Then: chdir "C:\stprt"
8 ------- - - - - - - - - - - - - - - - -
◄ If: 'use printwiz to generate txt to pdf
Then: system "C:\Program Files\Rasmussen Software, Inc\Print Wizard 4\printwiz" < ptxtfile < "/pdf /quiet"
9 ------- - - - - - - - - - - - - - - - -
◄ If: 'use Reader to display & process pdf file
Then: system "start AcroRd32.exe" < pdffile
10 ------- - - - - - - - - - - - - - - - -
◄ If: 'change back to original directory
Then: chdir "S:"
11 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: 1 = "" ; screen ,1
12 ------- - - - - - - - - - - - - - - - -
declare◄ If:
Then: declare ptxtfile , pdffile
Bob Simcoe
CFO
Mid-City Office Equipment Inc.<http://www.midcityoffice.com/>
A Women Business Enterprise
P. 716.832.0138 x201
C. 716.725.8311
F. 716.832.0892
Follow us on Facebook<http://www.facebook.com/pages/MidCity-Office-Furniture/298763689497?ref=ts>
For a Better Day at the Office
.
.
.
.
.
.
.
.
*** Message Virus Free. Email scanned by I-FILTER ***
Corporate Anti-Spam and Anti-Virus email service by www.I-EVOLVE.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20101111/058b6da5/attachment.html
More information about the Filepro-list
mailing list