Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

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

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
Elham_Seif
Asked:
Elham_Seif
1 Solution
 
Wayne Taylor (webtubbs)Commented:
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now