Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to get Maximum Dpi of installed or selected printer. I tried
C#
PrinterSettings ps = new PrinterSettings();
var maxResolution = ps.PrinterResolutions.OfType<PrinterResolution>()
                                         .OrderByDescending(r => r.X)
                                         .ThenByDescending(r => r.Y)
                                         .First();
MessageBox.Show(String.Format("{0}x{1}", maxResolution.X, maxResolution.Y));


I got three outputs. The third is Canon iP1300 -1x-1. What is -1x-1. As it mentioned in specifications of printer the maximum dpi of Canon iP1300 is 4800x1200. The output must be Canon iP1300 4800x1200 instead of -1x-1. Can anyone explain -1x-1 and why I am not getting the desired output?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900