John,
If you are using VFP9 there is a change in the way that the default printer
is allocated from other VFP versions. This can be a real gotcha as I found
out.
There are two default printers in VFP. The default VFP Printer and the
default System Printer. In order to set the default VFP Printer (which is
the ont to print to) with VFP9 you need to use the Sys(1037) function. In
VFP7 etc you used to be able to use GetPrinter() and then the
set("Printer",3) would echo back the change but in VFP9 that is NOT the case
any more, hence you need to use the Sys(1037) which is specified as the Page
Setup dialog, but you can in fact set up the printer destination from there.
Most of my users really got annoyed at this when I discovered it as you need
tn extra key click to get into the "Select Printer" dialogue.
Dave Crozier
The secret to staying young is to live honestly, eat slowly, and to lie
about your age
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of John Weller
Sent: 17 October 2006 21:14
To: [email protected]
Subject: Setting Default Printer
I've been using the code Dave gave me to print PDFs with some success. I am
required to print a PDF to a different printer depending on the folder the
pdf is in. I tried using SET PRINTER TO which, of course, didn't work as
VFP is not doing the printing, Adobe is - so,. naturally, it printed to the
default printer. Obviously I need to change the default printer depending
on the folder. I'm sure there is an API call which will do it but I can't
find it. Any suggestions gratefully received!
TIA
John Weller
Wessex Computer Solutions
01380 728880
07976 393631
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.