Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created July 24, 2015 09:41
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/fb5fd5b3471b8740b13d to your computer and use it in GitHub Desktop.
Save bjoerntx/fb5fd5b3471b8740b13d to your computer and use it in GitHub Desktop.
// create a new instance of the MultipagePrintDocument
MultipagePrintDocument mpPrintDocument = new MultipagePrintDocument(
textControl1,
pagesPerSheet,
true);
// use a PrintPreviewDialog to preview the created PrintDocument
PrintPreviewDialog dlg = new PrintPreviewDialog();
dlg.Document = mpPrintDocument;
dlg.ShowDialog();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment