Print Word file in C# and VB.NET

Print Word (DOCX) and Word 2003 (DOC) files in C# and VB.NET with GemBox.Document component.

GemBox.Document is a C# / VB.NET component that enables developers to read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF and TXT) from .NET applications in a simple and efficient way without the need for Microsoft Word on either the developer or client machines.
GemBox.Document Free is free of charge while GemBox.Document Professional is a commercial version licensed per developer.
For more information, see GemBox.Document features and why GemBox.Document outperforms Word automation.

Following example prints a Word file (DOCX or DOC) to the default printer.

C# code

// Print Word file (DOCX or DOC) to the default printer.
DocumentModel.Load(isDocx ? "Document.docx" : "Document.doc").Print();

VB.NET code

' Print Word file (DOCX or DOC) to the default printer.
DocumentModel.Load(If(isDocx, "Document.docx", "Document.doc")).Print()

For a more detailed example, see Print sample from GemBox.Document Sample Explorer.