Licensing
Save and export operations validate a license through LicenseManager. If the license is missing or invalid, a warning is written to the console but the operation still completes in evaluation mode.
C#
1using Vega;
2
3var doc = new VDocs();
4doc.LicensePath = "path/to/license.vegalic";
5
6// License is validated during Save*/GetHTML calls.
7doc.AddParagraph().AddText("Hello, licensed world!");
8doc.SaveAsWord("output.docx");
9doc.SaveAsPdf("output.pdf");
10doc.SaveAsHTML("output.html");
Frequently asked questions
What happens if the license is invalid?
A warning is printed to the console; the save/export still runs so you can evaluate the library.
Do I need to re-assign LicensePath for each save call?
No. Set LicensePath once on the VDocs instance; it is validated on every subsequent call.