Created
June 28, 2024 12:08
-
-
Save bjoerntx/31456fe23752cd91e76816a119ed59c3 to your computer and use it in GitHub Desktop.
This file contains 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
using System.Drawing.Printing; | |
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl()) | |
{ | |
tx.Create(); | |
tx.Load("test.docx", TXTextControl.StreamType.WordprocessingML); | |
PrintDocument printDocument = new PrintDocument(); | |
printDocument.PrinterSettings.PrinterName = "Microsoft Print to PDF"; | |
tx.Print(printDocument); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment