In a message dated 9/14/2002 12:59:36 PM Eastern Daylight Time,
[EMAIL PROTECTED] writes:
<< CVAL('CurrentPrinter') doesn't give you the default printer. It gives you
the current printer which may or may not be the designated default printer.
>>
Bernie, that's very true. It does give you the current printer. And in
Windows, the current printer IS the default printer.
Do a PRNSetup, choose a printer, and then open your printer folder, and it
will show the one you have set in PRNSetup as the default printer. If you
exit out, reboot the operating system, it will still have the last printer
set as the default printer.
You can hardcode the printer as:
set var vDefPrint = 'HP2200-1.stalder'
which is my default printer on this machine. But as soon as I go to another
computer, which may have a printer such as HP895 on a local port as the
default, then the hard coded printer doesn't work either.
Set var vDefPrint = 'HP895'
And as soon as you change to a new printer on the computer, and don't rename
it EXACTLY as the old printer was named, the hard coded printer doesn't work
either. So the only way I see it to work is to capture the default printer
when you come into the system, or change your code everytime someone changes
the default printer. To me, ANY hard coding default printers is a pain in the
neck, and a maintenance nightmare.
To make things a LITTLE easier, code the printer names in a table, then
choose the printers from there, with a default printer for each machine, then
you might be able to maintain it.
A PrnSetup when you come into the system, so the user can choose their
default printer when they start RBase might work. But then, you have the
situation where the user has to be able to pick the default printer. That
works as long as the RBase user is sophisticated enough to choose it, but I
certainly wouldn't want my shop floor people doing it.
Then you could set the default printer var, choose the one your using, then
back to the default. However, we're back into the situation where another
program may be looking for the default printer that IT had set, so it's
another Catch-22.
I hard code the Network Printer Alias names, then when you change a printer ,
use the same network alias, and it always functions. Keeps the user interface
to a minimum, and I can always control where I'm sending the documents to.
Those are the only choices I see, and you would have them in the Default
Printer Configuration as a function of the RBase Configuration file, the
cval situation, or the hard coding. NONE will serve all situations.
Damon
Damon D. Kaufman
President
Stalder Spring Works, Inc
ISO-9002 / QS-9000 Certified
2345 S. Yellow Springs St.
Springfield, Ohio 45506
Voice 937-322-6120
Fax 937-322-2126
email: [EMAIL PROTECTED]
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/