Created
September 23, 2010 16:47
-
-
Save peterdn/593953 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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