Click here to Skip to main content
11,642,381 members (62,167 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
I want to get Maximum Dpi of installed or selected printer. I tried
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 5-Dec-12 1:56am

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



Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 5 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100