1

I wish to add a new papersize named 'ABC'

I Add in mxdwdui.gpd file as follows

*Option: ABC { *rcName: =258 *OptionID: 258 *PageDemenssion: PAIR(10000, 10000) *PrintableArea: PAIR(9900, 9900) *PrintableOrigin: PAIR(50, 50) }

It meet the Requirements of document https://learn.microsoft.com/en-us/windows-hardware/drivers/print/supporting-vendor-defined-paper-sizes

But I can not open Printer preferences if I Add it

Anyone knows how to make it? Thanks a lot.

1 Answers1

0

You should use "*PageDimensions" instead of "*PageDemenssion". I would also recommend "*Name" instead of "*rcName". The following should work:

*Option: ABC
{
    *Name: "ABC"
    *PageDimensions: PAIR(10000,10000)
    *switch: Orientation
    {
        *case: PORTRAIT
        {
            *PrintableArea: PAIR(9900,9900)
            *PrintableOrigin: PAIR(50, 50)
            *CursorOrigin: PAIR(50, 50)
        }
        *case: LANDSCAPE_CC270
        {
            *PrintableArea: PAIR(9900,9900)
            *PrintableOrigin: PAIR(50, 50)
            *CursorOrigin: PAIR(50, 50)
        }
    }
} 
Craig Lebakken
  • 1,853
  • 15
  • 10
  • Thanks, I can open printer preferences after add contents above, BUT it did not show in papersize drop list of XPS printer, is there any more contents need to be added? – Nonskill_CAT Sep 17 '20 at 07:21
  • Have you restarted the Print Spooler service, or restarted your PC? The changes may not be loaded until the Print Spooler is restarted. – Craig Lebakken Sep 17 '20 at 14:30
  • I restarted PC, but the papersize 'ABC' is still missing. Does it have any relevance with the property [*Option: CUSTOMSIZE]? – Nonskill_CAT Sep 18 '20 at 01:01