Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API's
Message
 
To
31/10/2000 10:34:15
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: API's
Miscellaneous
Thread ID:
00436350
Message ID:
00436377
Views:
16
>Is there an ocx control that let's the user select the printer? How can the common dialogs window be used with VFP?
>

Jim,

GETPRINTER() returns the name of the user selected printer. When used along with the APRINTERS() function you have the name and the port.

The Common Dialogs ActiveX control allows you finer control over the dialog that appears, and additional values that the user can set via the dialog and can be returned to the caller.

The best way to become acquainted with it is go to the Controls tab of the dialog that appears when Tools/Options... is selected from the main VFP menu. In the list box, make sure that "Microsoft Common Dialog Control..." is checked. Then create a new form, select ActiveX Controls from the View Classes button, click and drop the control on the form. Then click the control to select it, and then right click to get the context menu for it. Select Help from the context menu and you'll have more information than I can provide here.

Naturally, if you have questions, create a new post with the question.
>
>>>Hello,
>>>
>>> Is there an API to call the Printer selection dialog? Or is there a way in Crystal Reports to change the printer?
>>>
>>>Thanks
>>>
>>Jim,
>>
>>GETPRINTER() calls the Common Dialogs window that's used by a number of applications. Also, the Common Dialogs ShowPrinter method allows for some additional functionality and information to be returned.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform