From ce45eab51cf71394424b7a2573428bcf7e3538df Mon Sep 17 00:00:00 2001 From: John Date: Tue, 18 Nov 2014 16:17:41 +0000 Subject: [PATCH] Fixed issue of landscape sections set for continuous pagination --- PROMS/Volian.Print.Library/PromsPrinter.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 43afa200..daf25b2b 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -1191,8 +1191,11 @@ namespace Volian.Print.Library Rtf2Pdf.Offset = new PointF(0, 2.5F); if (section.MyDocStyle.LandscapePageList) { - System.Drawing.Drawing2D.Matrix myMatrix = new System.Drawing.Drawing2D.Matrix(0, 1, -1, 0, cb.PdfDocument.PageSize.Height, 0); - cb.Transform(myMatrix); + if ((section.MyConfig as SectionConfig).Section_Pagination == SectionConfig.SectionPagination.Separate) + { + System.Drawing.Drawing2D.Matrix myMatrix = new System.Drawing.Drawing2D.Matrix(0, 1, -1, 0, cb.PdfDocument.PageSize.Height, 0); + cb.Transform(myMatrix); + } } else _MyHelper.IsLandscape = false;