CAD/CAM discussion forum > Other CAD/CAM Technology > GetPaperSize & GetPaperMargins tricks

GetPaperSize & GetPaperMargins tricks

Rank: 1

Hrvoje Krnić

Newbie

posts: 0

Registered: 2010-7-15

Message 1 of 2

15-04-2010 09:06 . pm | View his/her posts only
Hi,
here is some tricks for using GetPaperSize & GetPaperMargins.

Portrait and Landscape is usually orientation for paper.
To set paper to Landscape we set Layout.PlotRotation on zc90degrees. That meens we rotate paper for 90 degrees.
If we set rotation on zc90degrees we also rotate and margines. GetPaperSize & GetPaperMargins gives value for zc0degrees and we need recalculate margins value. For Landscape rotation margins recalculate like this:
LowerLeft.x = LowerLeft.y and LoverLeft.y = LowerLeft.x (simple we switch value for x and y) UpperRight.x = UpperReight.y and UpperRight.y = UpperReight.x (also switch value for x and y)
For Landscape rotation papersize simple switch Height and Width values.

Rank: 5Rank: 5

Eric_ZWSOFT

posts: 13

Registered: 2011-7-18

Message 2 of 2

26-04-2010 04:47 . pm | View his/her posts only


hi,hkrnic,thank you for your sharing ,wish u happy everyday


Best Regards
See also