A4 and A3 pages and the document


Author
Message
Hans Henrik Friis Pedersen...
Hans Henrik Friis Pedersen
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 28, Visits: 136
Hi,
I have been construting some large diagrams and visualized these in a document1. Document1 is set with dimensions of Width = 900 and height = 900. How do I set the document settings so that it corresponds to - for instance - a A3 pages in landscape ?

Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
In order to make a diagram of a specific size both on screen and when printing you should perform the following steps (I’m using the A5 paper size here, because my printer does not support A3):

1. Change the drawing document measurement unit and configure the document’s size
document.MeasurementUnit = NMetricUnit.Millimeter;
document.Width = 210;
document.Height = 148;

2. Configure the page settings of the drawing document, make sure to set the printing margins to 0
NPageSettings pageSettings = document.Settings.PageSettings;
pageSettings.Landscape = true;
pageSettings.PaperKind = PaperKind.A5;
pageSettings.MarginsLeft = 0;
pageSettings.MarginsTop = 0;
pageSettings.MarginsRight = 0;
pageSettings.MarginsBottom = 0;

3. When needed, create a print manager and configure it to print the document on a single page
NPrintManager printManager = new NPrintManager(document);
printManager.Layout = PagedLayout.FitToPages;
printManager.PageRows = 1;
printManager.PageColumns = 1;
printManager.ShowPrintPreview();

If you want to skip the print preview dialog, use the Print method instead of the ShowPrintPreview one.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search