Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/72b273e11e73e6f322f6 to your computer and use it in GitHub Desktop.
Save bjoerntx/72b273e11e73e6f322f6 to your computer and use it in GitHub Desktop.
/*----------------------------------------------------------
** MultipagePrintDocument class
**--------------------------------------------------------*/
class MultipagePrintDocument : PrintDocument
{
/*------------------------------------------------------
** Constructor
** description: Initializes the private data fields
**----------------------------------------------------*/
public MultipagePrintDocument(TXTextControl.TextControl textControl,
PagePerSheet pagesPerSheet,
bool drawPageBorders)
{
if (textControl == null)
throw new ArgumentNullException(
"An object of type TXTextControl.TextControl must be defined.");
m_textControl = textControl;
m_pagesPerSheet = pagesPerSheet;
m_drawPageBorders = drawPageBorders;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment