Thereis one more issue to resolve, now that we?re going with PRNSETUP ?Adobe
PDF?and PRINT.. OPTION PRINTER
Twolovely features of the R:Base OPTION PDF is that you can automatically
assign a file name and open it.The client in my case wanted the file sent
tospecifica network directory and to get a name describing the the report
andwhen it was printed.When I was usingOPTION PDF, this was my code:
--Create file name BMAAddressPhoneListmmmyyyy.PDF in directory F:\PDFReports:
SETVAR eMonthName TEXT = (SGET(TMON(.#DATE),3,1))
SETVAR eYear TEXT = (CTXT(IYR(.#DATE)))
SETVAR eFileName TEXT =
("F:\PDFReports\BMAAddressPhoneList"+.eMonthName+.eYear+".PDF")
--createprint command
SETVAR ePrintCommand = +
("PRINTTAddrTelephoneLis2 ORDER BY FullName OPTION PDF |FILENAME" +
&.eFileName +
&"|SHOW_CANCEL_DIALOGOFF |OPEN"& .eOpen)
---execute command
&ePrintCommand
Nowthat I?m using OPTION PRINTER, the ?OPEN ON? options is no longer
available,noris the auto file name.When the PRINT command executes, Windows
andAdobe take over and prompt for a file name.
Iknow, IF I can get the filename setautomatically, I could then OPEN the file
after printing with
LAUNCH.eFileName
Thequestion is:Is there any way in R:Base to get the Adobe filename
automatically setwith the variable above?I don?t see any such option either
with thePRNSETUP command or the PRINT .. OPTION PRINTER command in 7.6.
Ideas?
DavidBlocker
"David Blocker
[email protected]
Office: 781-344-1920
Cell: 339-206-0261"