question using a menu script
Richard Hane
yoresoft at sbcglobal.net
Thu Apr 19 08:58:18 PDT 2012
________________________________
From: GCC Consulting <rkreiss at gccconsulting.net>
To: 'Richard Hane' <yoresoft at sbcglobal.net>; 'file Pro Mailing List' <filepro-list at lists.celestial.com>
Sent: Wednesday, April 18, 2012 10:23 AM
Subject: RE: question using a menu script
> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of Richard Hane
> Sent: Tuesday, April 17, 2012 6:39 PM
> To: file Pro Mailing List
> Subject: question using a menu script
>
> Good afternoon list,
>
> Is it just me or has activity just died?
>
> Anyway, my question.
>
> First our system, 4 server Win 2003 using fpodbc and Print Wizard.
>
> I have 2 users that sometime print report to their printer and then again
> would rather print to a pdf. We use Print Wizard.
>
> In the past I set up 2 batch files, one for each operation. I also have
set up 2
> copies of each report; 1 with the pdf defintion and 1 with the users HP
printer
> type.
>
> My question is if use only 1 batch file but on the menu line defined a
script
> (F5) and added the Print Wizard pfpostprint as seen below, run the
> rreport then added another pfpostprint to set the state back to printer;
would
> that work?
>
> I probably would have to set pfprinter 2 times as well.
>
> set pfpostprint=C:\Program Files\Rasmussen Software, Inc\Print Wizard
> 4\printwiz /fpDF://V:\rickpdf\
>
> Thank in advance,
> Rick Hane
> Controller
> Deluxe Stitcher Company Inc
> ISP Stitching Products
> www.deluxestitcher.com
Suggestion: Use a clerk session with a menu selection for printing or pdf.
Then use a system command to execute the correct option. I have set this up
for one of my clients and I works just fine.
Richard Kreiss
GCC Consulting
Office: 410-653-2813
Richard,
Thanks for the idea. It sounds like this would be the answer; however when I set it up it just plain didn't work. Nothing changed.
I set up a new file select_printer with 2 fields. Fld 1 ask press 1 for printer and 2 for pdf. Fld 2 asks for the printer name (ie. rick, eng, rickpdf, etc.
Below is my processing..
1. if: 1="1"
then: ca="set pfprinter="{2{""; cb="set pfpostprint' "; goto dosys
2:if: 1="2"
then: ca="set pfprinter=rickpdf"
3. if: 1="2"
then: cb="set pfpostprint=C:\Program Files\Rasmussen Software, Inc\Print Wizard 4\printwiz /fpDF://V:\rickpdf\"
4. if: 1="2"
then: goto dosys
5. then: beep; errorbox "Must select 1 or 2 in 1st question"; restart
6. then: end
7. label: dosys
if:
then: system ca
8.if:
then: system cb
9. end
Do you see my problem or what I did wrong? BTW I do get a syntax error on the end of line 3 after the V:\ and yes this is a valid mapped drive.
I should point out for what it's worth; I am running in the virtual XP mode on a Win 7 O/S.
Thanks in advance
Rick Hane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20120419/19c658f8/attachment.html
More information about the Filepro-list
mailing list