Skip to content

Instantly share code, notes, and snippets.

@peterdn
Created September 23, 2010 16:47
Show Gist options
  • Save peterdn/593953 to your computer and use it in GitHub Desktop.
Save peterdn/593953 to your computer and use it in GitHub Desktop.
public void PrintHack()
{
PrintDocument doc = new PrintDocument();
doc.DocumentName = this.DocumentTitle;
doc.DefaultPageSettings = PageSettings;
doc.OriginAtMargins = true;
PrintManager pm = new PrintManager(doc, this, true);
pm.Print();
doc.Print();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment