Click here to Skip to main content
Sign Up to vote bad
good
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:56


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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 198
1 Sergey Alexandrovich Kryukov 159
2 Richard MacCutchan 150
3 Maciej Los 136
4 Tadit Dash 110
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,937
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,135


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 5 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid