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
435 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now