Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current printer selected
Message
 
 
To
09/09/2002 11:09:40
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00697773
Message ID:
00698309
Views:
13
Did you try SYS(1037)?

>The GETPRINTERS() function produces both a different dialog and different results when querying printers from a machine running Windows 95 or 98 as opposed to Windows NT 4.0. (see Microsoft Knowledge Base Article - Q220157). It was causing a problem in my application. So I switched to use REPORT FORM…. PROMPT command, which is working just fine for me unless I have to print a batch of reports. In this case I want to ask the user to select a printer only once before the first report is printed and use the same printer when any of the following reports are printed in the batch. So I have a code that will look like
>If thisform.First
> REPORT FORM (repname) TO PRINTER PROMPT NOCONSOLE
>ELSE
> REPORT FORM (repname) TO PRINTER NOCONSOLE
>ENDIF
>IF the user selects non-default printer on the first report, the second statement will reset the selection to the default printer. I would like to know if there is any way to know what printer was selected the first time around.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform