Use new PromsPrinter Method (NewPage) to set the page size properly before outputing the page Break.

Added a New Object (ReaderHelper) which provides the necessary support to allow MSWord documents to use various page sizes.  MSWord has a limit of 22 inches for the largest width or height.
Use new PromsPrinter Method (NewPage) to set the page size properly before outputing the page break.
Use new PromsPrinter Method (NewPage) to set the page size properly before outputing the page break.
Updated vlnParagraph constructors to use parameter MyPromsPrinter since it is used to create page breaks.
This commit is contained in:
Rich
2015-03-26 02:21:52 +00:00
parent 5d2b0bc1b0
commit 2d6f5f443e
3 changed files with 312 additions and 72 deletions

View File

@@ -591,7 +591,7 @@ namespace Volian.Print.Library
}
private void ForcePagination(PdfContentByte cb, ref float yPageStart, float yTopMargin, float yBottomMargin, ref float yLocation, ref float retval)
{
cb.PdfDocument.NewPage(); // pagination issue
MyPromsPrinter.NewPage();
DebugText.WriteLine("*****PaginateError");
yPageStart = yTopMargin + YVeryTop;
yLocation = yPageStart - YOffset;
@@ -999,7 +999,7 @@ namespace Volian.Print.Library
// `88b ooo 888 888 888 888 888 888 888 888 888 .o o. )88b o. )88b 888 d8( 888 888 888 .
// `Y8bood8P' `Y8bod8P' o888o o888o o888o 888bod8P' d888b `Y8bod8P' 8""888P' 8""888P' o888o `Y888""8o d888b "888"
// 888
// o888o
// o888o
//
// | Step over a Number of Pages |
// | First Page | Second Page | Third Page |