See
How to add/delete custom printer forms under Windows NT/2K/XP FAQ #21202
>In Win 98, I want to set Custom paper size programatically.
>
>In Win XP, I manually open "Printer & Faxes", then click File Menu> Server Properties. Here I create new Custom Form. I need the internal number of this custom form. I replace this "Form Number" in all my reports, so that they use this "Paper Size".
>Is there a better way?
>If Not then, can it be done programatically?
--sb--