Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using DBI-Tech's ctSchedule & MSFTs PageSet.Dll
Message
 
To
28/04/2004 17:09:43
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00899107
Message ID:
00899355
Views:
16
Running the command:
llokay=PEMStatus(oPrint,'ReSetOrientation', 5 )
sets llOkay to false.





>After you issue oPrint = CREATEOBJECT("PageSet.PrinterControl")
>
>What does the value of llokay (in the below code)
>
>llokay=PEMStatus(oPrint,'ReSetOrientation', 5 )
>? llokay
>
>equal?
>
>If it is true, then step through the method of ReSetOrientation...
>
>
>
>> oPrint.ChngOrientationLandscape
>>
>> .PrintSchedule && send to printer
>>
>> oPrint.ReSetOrientation
>> RELEASE oPrint
>> oPrint = .NULL.
>>ENDWITH
>>
>>
>>but when it gets to the "ChngOrientationLandscape" command, it errors with:
>>
>>
>>OLE IDispatch exception code 0 from PageSet: Subscript out of range..
>>
>>
>>Have tried to passing parameters (.t., 1, 0, ...) but nothing works. I think this is due to not having admin rights on the network to manipulate the printer, and the error msg is a bit misleading. But was curious if anyone encountered something similar or new a workaround.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform