Click or drag to resize
Hello World Sample

After installing a component (to download component, click here), it is installed in GAC (Global Assembly Cache).

To use GemBox.Document follow these steps:

  • Create a new .NET project (or use the existing one).

  • Use Add Reference dialog to add a new reference to the DLL with GemBox.Document name. It should be under .NET tab.

  • Import GemBox.Document namespace: using GemBox.Document; for C# or Import GemBox.Document for VB.NET.

  • Set license key to use GemBox.Document in a Free mode: ComponentInfo.SetLicense("FREE-LIMITED-KEY"); for C# or ComponentInfo.SetLicense("FREE-LIMITED-KEY") for VB.NET.

Now you can write your application specific document processing code like the one below.


Using GemBox.Document component is easy and straightforward. The following code shows how to create a document with 'Hello World!' text:

// Create a new empty document.
var doc = new DocumentModel();

// Add document content.
doc.Sections.Add(new Section(doc, new Paragraph(doc, "Hello World!")));

// Save the document to DOCX and PDF file.