Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Operating System Differences
Message
From
21/04/2002 18:25:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Operating System Differences
Miscellaneous
Thread ID:
00647406
Message ID:
00647406
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform