Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with getPrinter() and SYS(1037)
Message
From
24/11/1999 08:56:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Problem with getPrinter() and SYS(1037)
Miscellaneous
Thread ID:
00294947
Message ID:
00294947
Views:
94
In my menu I have 2 options :
1- Select a default printer (I use GetPrinter())
2- Page setup (I use SYS(1037))

When someone use the option #2 and after that the option #1, VFP Crash. !!

In msdn they said that it's a problem, but they don't have a solution !
How can I give the opportunity to my users to select a default printer for their application and be able to change de setup of the printer ??

I know that I can use REPORT FORM .... PROMPT, but the user will always have the "printer settings dialog box" before the report begins to print.

Is it possible, like in Word and Excel, to have to options in a program :
1- Display the printer setup dialog box before a report is beginning to print.
2- Don't display it before the report is beginning to print and use the last selected default ?

And how can I know the default printer selected by the user ?
I try Set("printer",2) but it's just display the name of the first printer available on my PC.

Thanks !
Next
Reply
Map
View

Click here to load this message in the networking platform