Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//setting up source
const String strDocumentTemplate = "Word Templates/Dynamic bookmarks.docx";
//Setting up destination
const String strDocumentReport = "Word Reports/Dynamic bookmarks.docx";
//Setting up Uri Expression
const String bookmark_expression = "gd_bookmark";
//Setting up Display Text Expression
const String displayTextExpression = "GroupDocs";
//Instantiate DocumentAssembler class
DocumentAssembler assembler = new DocumentAssembler();
//Call AssembleDocument to assemble document
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strDocumentTemplate), CommonUtilities.SetDestinationDocument(strDocumentReport), new DataSourceInfo(bookmark_expression, "bookmark_expression"), new DataSourceInfo(displayTextExpression, "displayTextExpression"));
catch (Exception ex)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.