Free and Professional Word library in C# and VB.NET

GemBox.Document is a .NET library for processing Word files that has four working modes:

Every working mode uses the same GemBox.Document.dll file and delivers the same performance and set of features, but has some restrictions (except for the Professional mode).

Before using any other member of GemBox.Document library from your C# or VB.NET application, you must call a ComponentInfo.SetLicense method to set the working mode.

Free Word library

The default behavior of the Free mode is that a FreeLimitReachedException is thrown when loading or saving a Word file with more than 20 paragraphs.

You can change this behavior to achieve the trimming of document content to the first 20 paragraphs by handling a ComponentInfo.FreeLimitReached event and setting FreeLimitEventArgs.FreeLimitReachedAction to Stop.

You can use the Free mode for any purpose, including use in commercial applications.

// Set license key to use GemBox.Document in a Free mode.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");

// Stop reading/writing a document when the free limit is reached.
ComponentInfo.FreeLimitReached += (sender, e) => e.FreeLimitReachedAction = FreeLimitReachedAction.Stop;
' Set license key to use GemBox.Document in a Free mode.
ComponentInfo.SetLicense("FREE-LIMITED-KEY")

' Stop reading/writing a document when the free limit is reached.
AddHandler ComponentInfo.FreeLimitReached, Sub(sender, e) e.FreeLimitReachedAction = FreeLimitReachedAction.Stop

Trial Word library

You can use the Trial mode to evaluate beyond the first 20 paragraphs. Both Free and Trial modes use the same FREE-LIMITED-KEY key and can be used for an unlimited time period.

To set the Trial mode, you need to handle a ComponentInfo.FreeLimitReached event and set FreeLimitEventArgs.FreeLimitReachedAction to ContinueAsTrial.

The limitations of Trial mode are when loading a Word file, random parts of the document text will be replaced with TRIAL and when saving a Word file, a promotional header will be added to every document page and will replace any existing header.

// Set license key to use GemBox.Document in a Free mode.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");

// Continue to use the component in a Trial mode when free limit is reached.
ComponentInfo.FreeLimitReached += (sender, e) => e.FreeLimitReachedAction = FreeLimitReachedAction.ContinueAsTrial;
' Set license key to use GemBox.Document in a Free mode.
ComponentInfo.SetLicense("FREE-LIMITED-KEY")

' Continue to use the component in a Trial mode when free limit is reached.
AddHandler ComponentInfo.FreeLimitReached, Sub(sender, e) e.FreeLimitReachedAction = FreeLimitReachedAction.ContinueAsTrial

Time Limited Word library

You can also use the Time Limited mode to evaluate beyond the first 20 paragraphs.

To set the Time Limited mode, you need to use a temporary or time-limited key, which you can get by contacting us.

The limitation of Time Limited mode is that it can be used only for 30 days.

// Set license key to use GemBox.Document in a Time Limited mode.
ComponentInfo.SetLicense("XX−<START DATE>−<END DATE>-XXXXXXXXXX");
' Set license key to use GemBox.Document in a Time Limited mode.
ComponentInfo.SetLicense("XX−<START DATE>−<END DATE>-XXXXXXXXXX")

Professional Word library

To set the Professional mode, you need to use a professional key which you can get by purchasing a license.

The Professional mode has no limitations, and the professional keys are perpetual (can be used forever).

// Set license key to use GemBox.Document in a Professional mode.
ComponentInfo.SetLicense("XXXXXXXXXX");
' Set license key to use GemBox.Document in a Professional mode.
ComponentInfo.SetLicense("XXXXXXXXXX")

Want more?

GitHub

Check the next example or select an example from the menu. You can also download our examples from the GitHub.


Like it?

Download Buy

If you want to try the GemBox.Document yourself, you can download the free version. It delivers the same performance and set of features as the professional version, but with some operations limited. To remove the limitation, you need to purchase a license.