Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GroupDocs.Assembly for .NET 19.10
string template_doc_path = "template.docx";
string report_doc_path = "report.docx"
CsvDataSource dataSource = new CsvDataSource("datasource.csv");
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(template_doc_path, report_doc_path, new DataSourceInfo(dataSource, "persons"));
Document doc = ... // Loading a template document.
CsvDataSource dataSource = ... // Loading CSV.
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(doc, dataSource, "persons");
string template_doc_path = "template.docx";
string report_doc_path = "report.docx"
CsvDataLoadOptions options = new CsvDataLoadOptions(true);
CsvDataSource dataSource = new CsvDataSource("datasource.csv", options);
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(template_doc_path, report_doc_path, new DataSourceInfo(dataSource, "persons"));
Document doc = ... // Loading a template document.
CsvDataLoadOptions options = new CsvDataLoadOptions(true);
CsvDataSource dataSource = new CsvDataSource(..., options); // Loading CSV.
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(doc, dataSource, "persons");
string template_doc_path = "template.docx";
string report_doc_path = "report.docx"
JsonDataSource dataSource = new JsonDataSource("datasouce.json");
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(template_doc_path, report_doc_path, new DataSourceInfo(dataSource, "persons"));
string template_doc_path = "template.docx";
string report_doc_path = "report.docx"
JsonDataSource dataSource = new JsonDataSource("datasouce.json");
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(template_doc_path, report_doc_path, new DataSourceInfo(dataSource));
string template_doc_path = "template.docx";
string report_doc_path = "report.docx"
XmlDataSource dataSource = new XmlDataSource("datasource.xml");
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(template_doc_path, report_doc_path, new DataSourceInfo(dataSource, "persons"));
Document doc = ... // Loading a template document.
XmlDataSource dataSource = ... // Loading XML (without schema).
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(doc, dataSource, "persons");
string template_doc_path = "template.docx";
string report_doc_path = "report.docx"
XmlDataSource dataSource = new XmlDataSource("datasource.xml");
DocumentAssembler assembler = new DocumentAssembler();
assembler.AssembleDocument(template_doc_path, report_doc_path, new DataSourceInfo(dataSource));
Document doc = ... // Loading a template document.
XmlDataSource dataSource = ... // Loading XML.
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(doc, dataSource);
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.