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.
**********************************************************************
_______________________________________________
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.