Andy,
I confirm that your observations are in fact true. 

I always use Sys(1037) and select the "Printer" button to select the desired
printer when working in a networked environment as opposed to Getprinter()
as it ALWAYS sets the "VFP Printer" to the correct value. It involves users
in one more "Click" to select the printer but works on all VFP versions
networked or not.

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 Andy Davies
Sent: 18 July 2006 10:31
To: profox@leafe.com
Subject: RE: SET PRINTER TO NAME

Hi,
I did a bit more playing with this (vfp9 ReportBehavior=80):
SET PRINTER TO NAME GETPRINTER( )
*seems to work OK - but see below**
?SET("Printer",2)  && Windows Default
?SET("Printer",3)  && New Fox Default
select foo, bah from somewhere into cursor xxx READWRITE CREATE REPORT tst
FROM xxx  && layout is in tag *but no printer info*
(why?)
REPORT FORM tst to printer  && see below

** The first time I tried this I selected a printer that is no longer
connected
** and the report apparently printed to the *Win* default - confirming the
behaviour
** reported by Dave Crozier and others.
** I then tried Devendra's suggestion of using aprinters() and noticed that
my
** selected printer was on lpt1: the same port as the Win default.
** so I tried selecting Paperport (a software printer which uses its own
port)
** - this worked using the aprinters() name. I then tried
**  SET PRINTER TO NAME GETPRINTER( ) again but selecting Paperport - AOK!

So there seems to be no difference between getprinter and aprinters - and I
offer the suggestion that the suspected bug re Win ~ Fox default printers
may be a port thing - i.e. if no printer is in the frx Fox uses the printer
*on the port* specified for the Fox default (I wonder which driver?)

I leave more extensive testing (and networked printers) as an exercise for
the reader (Dave?) <VBG>

Andrew Davies  MBCS CITP
  - AndyD        8-)#


**********************************************************************

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Please contact [EMAIL PROTECTED] with any queries.

**********************************************************************



[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
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.

Reply via email to