Skip to content

Instantly share code, notes, and snippets.

@usman-aziz
Last active September 4, 2019 10:16
Show Gist options
  • Save usman-aziz/70acd9812c5dbdb4b9259fcc9493763c to your computer and use it in GitHub Desktop.
Save usman-aziz/70acd9812c5dbdb4b9259fcc9493763c to your computer and use it in GitHub Desktop.
// Set text for description field
const string description =
"GroupDocs.Assembly for .NET is a class library that enables you to generate documents in popular " +
"Office and email file formats based upon template documents and data obtained from various sources " +
"including databases, XML, JSON, OData, objects of custom .NET types, external documents, and more.";
// Create document assembler
DocumentAssembler assembler = new DocumentAssembler();
// Generate report
assembler.AssembleDocument(
"ReadMe.docx",
"ReadMe_Out.md",
new DataSourceInfo("GroupDocs.Assembly for .NET", "product"),
new DataSourceInfo(description, "description"));
// Set text for description field
final String description =
"GroupDocs.Assembly for Java is a class library that enables you to generate documents in popular " +
"Office and email file formats based upon template documents and data obtained from various sources " +
"including databases, XML, JSON, OData, objects of custom Java types, external documents, and more.";
// Create document assembler
DocumentAssembler assembler = new DocumentAssembler();
// Generate report
assembler.assembleDocument(
"ReadMe.docx",
"ReadMe_Out.md",
new DataSourceInfo("GroupDocs.Assembly for Java", "product"),
new DataSourceInfo(description, "description"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment