MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
230 stars 494 forks source link

Instructions on how to use user customize page are missing from the Print-support-app-design-guide documentation #2349

Open 532479301 opened 1 year ago

532479301 commented 1 year ago

I am working on the Print Support APP. But the Microsoft's Print-support-app-design-guide documentation do not mention how to implementation the user customized page size function.

The IPP class driver which works with Print Support APP do not support user customized page size according to its Print Schema XML config.

Is it possible to add a chapter about how to implementation the user customized page size function?

532479301 commented 1 year ago

Followed by the document named Print Schema Specification v2.0,I insert a xml node (listed below) as child of psk:PageMediaSize node within event handler of PrintDeviceCapabilitiesChanged.

<psk:CustomMediaSize psf2:psftype=""Option"" psf2:default=""false""> <psk12:LeftImageableMargin psf2:psftype=""Property"" xsi:type=""xsd:integer"">0</psk12:LeftImageableMargin> <psk12:RightImageableMargin psf2:psftype=""Property"" xsi:type=""xsd:integer"">0</psk12:RightImageableMargin> <psk12:TopImageableMargin psf2:psftype=""Property"" xsi:type=""xsd:integer"">0</psk12:TopImageableMargin> <psk12:BottomImageableMargin psf2:psftype=""Property"" xsi:type=""xsd:integer"">0</psk12:BottomImageableMargin> <psk:MediaSizeHeight psf2:psftype=""ScoredProperty"" xsi:type=""psf:ParameterRef"">psk:PageMediaSizeMediaSizeHeight</psk:MediaSizeHeight> <psk:MediaSizeWidth psf2:psftype=""ScoredProperty"" xsi:type=""psf:ParameterRef"">psk:PageMediaSizeMediaSizeWidth</psk:MediaSizeWidth> </psk:CustomMediaSize>

After that, when the windows.printSupportSettingsUI extention is up, the suitable customized pages are added into Capabilities. But there has a problem: the display name is not correctly for those customized paper! All the names are same, NOT the name when user create it!