Re: negotiate paper sizes with printer driver? by Ramboi2
Ramboi2
Tue Oct 28 00:39:20 CST 2003
Yes there is a way to negotiate custom papersize. Depending on the driver you
use, most printer drivers allow you to customize your own papersize. I don't
think you can specify 1 x 1 like that, because there is a minimum range you
have to meet because there is unprintable region of the printer that you have
to take in consideration. Any way, what I would first, is to create a custom
papersize on a default printer driver for testing, Select Advance under your
printer property. Select Paper source, select Custom size, then input your
paper dimension. Give a name for this size, and click save, the spooler stores
this papersize under the "DevModePeruser" in Hex format in the registry for
this driver.
When you are ready to negotiate for your own custom size, instead of selecting
"Letter" or "Legal" size, you would supply the name of your custom papersize
that you just stored. Please use MSDN to find out how to select paperbin.
I hope this helps you.
Ramboi2
<ms@nogga.de> wrote in message news:eiTklDMlDHA.2528@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> for a bitmap printer driver I would like to adjust the paper size to the
> printed area. Consider e.g. a image drawing program (MsPaint) that wants
> to print a 600x600 pixel image into a printer driver with 600dpi. Is
> there a possibility to negotiate a custom paper size of 1x1 inch?
>
> As a second example, take the acrobat reader, who has the information
> about the used paper coded into the pdf. There is an option in the
> Advanced dialog "Choose Output Tray by PDF paper size".
>
> Do I have to support all known paper types, or is there a possibility to
> negotiate the desired paper size with the application prior to printing?
>
> thanks in advance
> Dirk
>