Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SYS(1037) Causes C000005 crash if CANCEL/ESC.
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00308812
Message ID:
00309942
Views:
35
>>>>Ed,
>>>>
>>>>No, there is an ActiveX control that comes with VFP6 for Common Dialogs. One of those is the Printer settings. Microsoft Common Dialog Control, version 6.0. Make sure it's activated under Tools/Options/Controls and the ActiveX controls radio button is selected and that control is checked.
>>>
>>>Fred,
>>>
>>>I tried the ActiveX control mentioned above and, although it returns some very useful information such as orientation, number of copies, etc., it does not have a property for the default printer or paper size. The Windows Default Printer is the information that I need most. Do you know if I am missing something in this control for obtaining the default printer?
>>>
>>>Ed
>>
>>Ed,
>>
>>You can use SET('PRINTER',2) for the Windows Default Printer name, and SET('PRINTER',3) for VFP's current Default Printer name.
>
>Fred,
>
>Yea, I believe that the original reason that I was not using that method was that SYS(1037) was not actually changing the Default Printer but was changing the Selected Printer and Set(Printer) was not able to see what the Selected Printer was. I guess that I've been using the term Default when I should have been saying Selected.
>
>I'm in the process of testing the VBPrinter ActiveX control that is in the UT file section and I believe that it might have the solution to my problem. It returns not only the printer but also the paper size along with a plethora of other printer settings.
>
>Ed

I haven't checked out that control. But it sounds like that control may require the distribution of the VB runtime files as well. Ugh, just what I need, MORE files to distribute! :)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform