I have written a port monitor based on sample port monitor in DDK.
It is using the InitializePrintMonitor entry and associated MONITOREX
api structure. Data output is to a special port. Everything is OK
except that
form to tray assignments are not working in device settings tab for the
printer.
Printer is created using AddPrinter() api. WinPrint print processor is
chosen
as well as my port monitor dll. No language monitor is used.
Problem is exibited as follows:
-
Open printer properties. The general tab shows “Letter” page is
available.
-
Select Device Settings tab and assign different forms to various
trays available.
hit Apply button.
-
Select General tab and it shows updated list of pages available.
-
Close properties dialog.
-
Open printer properties again. General tab shows “Letter” only
available.
All Device settings for printer have reset. This includes settings
other than
form to tray assignments.
Now, if one changes the port to be used by the printer to “FILE” or
“LPT1” then any changes in Device Settings tab work properly.
In this case the standard port monotor localspl.dll is used.
I’ve looked at EnumPorts() implementation and I cannot see it having
such effect on the printer’s device settings.
This behavior occurs on Win2K. Similar thing happens on NT4 except
that it defaults to A4 rather than Letter.
Has anyone got any ideas
Second attempt…
Anyone got any ideas on problem described?
ned
ned kacavenda wrote:
I have written a port monitor based on sample port monitor in DDK.
It is using the InitializePrintMonitor entry and associated MONITOREX
api structure. Data output is to a special port. Everything is OK
except that
form to tray assignments are not working in device settings tab for
the printer.
Printer is created using AddPrinter() api. WinPrint print processor
is chosen
as well as my port monitor dll. No language monitor is used.
Problem is exibited as follows:
-
Open printer properties. The general tab shows “Letter” page is
available.
-
Select Device Settings tab and assign different forms to various
trays available.
hit Apply button.
-
Select General tab and it shows updated list of pages available.
-
Close properties dialog.
-
Open printer properties again. General tab shows “Letter” only
available.
All Device settings for printer have reset. This includes
settings other than
form to tray assignments.
Now, if one changes the port to be used by the printer to “FILE” or
“LPT1” then any changes in Device Settings tab work properly.
In this case the standard port monotor localspl.dll is used.
I’ve looked at EnumPorts() implementation and I cannot see it having
such effect on the printer’s device settings.
This behavior occurs on Win2K. Similar thing happens on NT4 except
that it defaults to A4 rather than Letter.
Has anyone got any ideas
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@colorts.com.au
To unsubscribe send a blank email to xxxxx@lists.osr.com