Click here to Skip to main content
12,881,797 members (29,289 online)
Rate this:
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)
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 5 Dec 2012
Copyright © CodeProject, 1999-2017
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