|
From: Neal Bade on 16 Apr 2008 14:59 If in Microsoft Word's "Page Setup" dialog I select custom page size and enter 1.5 inch width by 1 inch high, how does this information get passed to the printer driver? I expected that the DEVMODE passed to DrvEnablePDEV would contain the correct dmPaperLength and dmPaperWidth, but these values seem to be the default form size for the printer. I know these values are available because another vendor's printer driver works correctly in this case. What am I missing? Neal
From: Christoph Lindemann on 17 Apr 2008 04:51 Might be the following will help you (if you are not aware of this) In MS Word (and other MS Office apps) the page setup is not in the "first" DEVMODE (CreateDC) but first in the second and following (ResetDC). So you will not get page setup stuff in the first DrvEnablePDEV, but in the second and following DrvEnablePDEV So Word would: 1. Call CreateDC - with job specific settings 2. Call ResetDC - with page specific settings 3. Print page 1 4. Print page 2 ...... -- Christoph Lindemann "Neal Bade" <neal(a)tharo.com> wrote in message news:e5b2nQ$nIHA.1740(a)TK2MSFTNGP05.phx.gbl... > If in Microsoft Word's "Page Setup" dialog I select custom page size > and enter 1.5 inch width by 1 inch high, how does this information get > passed to the printer driver? > > I expected that the DEVMODE passed to DrvEnablePDEV would > contain the correct dmPaperLength and dmPaperWidth, but these > values seem to be the default form size for the printer. > > I know these values are available because another vendor's printer > driver works correctly in this case. > > What am I missing? > > Neal > >
From: Neal Bade on 17 Apr 2008 09:50 I was aware of the ResetDC calling DrvEnablePDEV again, but I thought that I had checked this. I will debug this again to see if I missed something. Thanks! "Christoph Lindemann" <clindemann2(a)newsgroups.nospam> wrote in message news:OLOZDhGoIHA.4928(a)TK2MSFTNGP04.phx.gbl... > Might be the following will help you (if you are not aware of this) > > In MS Word (and other MS Office apps) the page setup is not in the "first" > DEVMODE (CreateDC) but first in the second and following (ResetDC). So you > will not get page setup stuff in the first DrvEnablePDEV, but in the > second and following DrvEnablePDEV > > So Word would: > 1. Call CreateDC - with job specific settings > 2. Call ResetDC - with page specific settings > 3. Print page 1 > 4. Print page 2 > ..... > > -- > Christoph Lindemann > > > "Neal Bade" <neal(a)tharo.com> wrote in message > news:e5b2nQ$nIHA.1740(a)TK2MSFTNGP05.phx.gbl... >> If in Microsoft Word's "Page Setup" dialog I select custom page size >> and enter 1.5 inch width by 1 inch high, how does this information get >> passed to the printer driver? >> >> I expected that the DEVMODE passed to DrvEnablePDEV would >> contain the correct dmPaperLength and dmPaperWidth, but these >> values seem to be the default form size for the printer. >> >> I know these values are available because another vendor's printer >> driver works correctly in this case. >> >> What am I missing? >> >> Neal >> >> > >
|
Pages: 1 Prev: Disabling DHCP in Ndis miniport driver Next: EWT and Logman.exe for dummies |