Solved

How can I set my pageSetupDialog margin measurment unit to Inch instead of Millimeters. No matter what regional setting the computer has.

Posted on 2008-10-18
1
447 Views
Last Modified: 2013-11-07
How can I set the measurment unit of a PageSetupDialog to inches programatically?
I have a PageSetupDialog for my PrindtDocument that works fine when the measurment unit is in Inches but on some computers the measurment unit is set to millimeters according to regional setting of the computer and my print mix up on those computer. I don't want to chage the regional setting of computers but programatically I want to set the measurment unit to inches for my PagesetupDialog.
0
Comment
Question by:Elham_Seif
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 22750180
Set the EnableMetric property of the PageSetupDialog to True.

http://msdn.microsoft.com/en-us/library/system.windows.forms.pagesetupdialog.enablemetric(VS.80).aspx

Wayne
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question