Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Operating System Differences
Message
From
22/04/2002 13:28:50
 
 
To
22/04/2002 11:04:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00647406
Message ID:
00647680
Views:
18
Silly question, but since I cannot see anything obviously wrong with your code and the screens appear to be showing as they should and the final accept key is {Enter}, correct? I'm going to guess (and I am JUST guessing here based on past printer problems on a network) that maybe the user doesn't have the required rights to the printer to change the flip status? What happens if you try the code on a WinNt machine logged in as admin (if the printer is on the network) or admin on the workstation if the printer is local?

Tracy

>Thanks for the response. I appreciate it. Unfortunately, I'm not sending VFP reports, but rather trying to control the appearance of Word Documents. I've gone 'round and 'round with this and finally have it working on my Win 98 machine, but can't get the same code to execute properly on an NT workstation.
>
>>I would try to clear TAG, TAG2 and EXPR fileds in the report's first record.
>>
>>>I don't know what catageory this really belongs in but here goes
>>>
>>>I have an application which prints to an HP 8100/8150 printer with a duplexer attached. The printer is attached to the LPT1: port.
>>>
>>>One of the capabilities of this printer is to print the second page in a "Flipped" or "Unflipped" status (determines how to turn the page to see the back side).
>>>
>>>I've created two Quick Sets (named BKL and TMB) which have the settings I need.
>>>
>>>I have placed the Microsoft Common Dialog Control on a form to switch between these two quick sets. I use the following code to activate the appropriate set.
>>>
>>>
IF Thisform.PrintType <> tcPrintType
>>>	KEYBOARD '{TAB}{ENTER}{UPARROW}{UPARROW}{UPARROW}{DNARROW}'
>>>	IF tcPrintType = "TMB"
>>>		KEYBOARD '{DNARROW}'
>>>	ENDIF
>>>	KEYBOARD '{ENTER}{ENTER}'
>>>	Thisform.ctlPrinter.ShowPrinter()
>>>ENDIF
>>>
>>>
>>>When I run this on my Win 98 machine everything works fine. However, when I run it on a NT 4.0 machine, I see the same progression of screens. The showprinter dialog appears, switches to the appropriate screen, and the correct Quick Set appears. However, when the document eventually prints, it always appears in the default setting for the printer.
>>>
>>>Can anyone enlighten me on the differences between Win 98 and Win NT which would cause this bechavior and what I might do to get my application working properly in both environments?
>>>
>>>Thanks to all........Rich
.·*´¨)
.·`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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform