Windows XP Printer Driver, DrvDocumentPropertySheets

M

Markus Goetz

Hello,

I am currently in the progress of implementing a printer driver with the
current 2003 DDK.

The DrvDocumentPropertySheets is giving me pain.

I do the following test:

- Open the application
- Go to the printer/page settings
- Open the settings provided by my driver
- Change the page orientation from portrait (the default) to landscape
- click OK
- Open the settings provided by my driver again and look if it is still
in landscape

I am having a lot of debug messages (and windgb.exe at the app to test)
to check for success.

The applications i test with:
- notepad.exe: Works fine
- mspaint.exe: Works fine
- OpenOffice 1.1.4: Does NOT remember the settings
- Adobe Reader: Does NOT remember the settings

I think I implemented DrvDocumentPropertySheets (partially?) the correct
way. But for some odd reason, i give the calling programm the MY_DEVMODE
with the right landscape setting, but the next time it gives me portrait
again.

What i noticed: I'm putting a devmode in pdmOut that has the adress X
and pdmIn is NULL. (no PSUIInfo parameter). Then the function is called
again 2 times, asking for the devmode size. And after that, it is called
with a PSUI info and a pdmIn of Y and a pdmOut of X. Why?

Also, is it the correct way when i have a static MY_DEVMODE variable (a
DEVMODEW with some private data of mine attached) that represents my
settings internally?

Well, can anyone help me with this issue?

thanks,
Markus Goetz

f'up to microsoft.public.windowsxp.device_driver.dev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top