Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using DBI-Tech's ctSchedule & MSFTs PageSet.Dll
Message
De
29/04/2004 14:29:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00899107
Message ID:
00899459
Vues:
14
Then at the point that you issue:

oPrint.ReSetOrientation

the method ReSetOrientation does not exist for the object oPrint. Does it return .t. when you check the PEMSTATUS() for

oPrint.ChngOrientationLandscape

?


>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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform