Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing from RTF control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00451541
Message ID:
00451557
Views:
30
>Hi George:
>
>I looked up the value for the flag constant cdlPDReturnDC. It was 256. Here is what I have, but doesn't work. Also tried setting it to 0x100 like you said, but that doesn't work either.
>
>thisform.olecontrol2.ShowPrinter
>thisform.olecontrol2.flags = 256
>thisform.olecontrol1.selprint(thisform.olecontrol2.hDC, .t.)
>
Charlie,

I did the following from the command window and it seemed to work
oDlg = CREATEOBJECT("MSComDlg.CommonDialog.1")
oDlg.Flags = 0x100
oDlg.ShowPrinter
? oDlg.hDC && 6986
The difference is that I set the .Flags property prior to calling the ShowPrinter method. When I do as you did (setting it after the call), it returns zero.
George

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

Click here to load this message in the networking platform