Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Printer page sizes

$
0
0

Hi

I'm printing reports in WPF using a custom preview control and want to update the document's layout when the paper size is changed and so I can't use the standard print dialog. The only way I've found to get the paper sizes for the printer is using something like this:

WPF - Print Queues And Capabilities

What is returned is a list of user unfriendly names such as ISOA4 (793.700787401575 x 1122.51968503937)

So I've thought to convert them to a more friendly format using a dictionary and getting the full list of sizes from PageMediaSizeName Enumeration

Before I head down that road does someone know another way?

Thanks,

M





Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>