Bulleted List in Text Document
Leave feedback
NoteIn this article, we will use GroupDocs.Assembly to generate a Bulleted List report in Text Document format.
NoteThe code uses some of the objects defined in The Business Layer.
NoteThis feature is supported by version 17.04 or greater
Practicing the following steps you can insert Bulleted List in a Text document.
- To add a bulleted list use • as a bullet for each element in the list.
- Save your Document.
As a report developer, you are required to share the following key requirements:
- A report must show all the products in a bulleted list format.
- A report must be generated in the Text Document format.
We provide support for the following products:
<<foreach [in products]>>• <<[ProductName]>>
<</foreach>>
TipFor detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine.
Please download the sample Bulleted List document we created in this article:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-.NET | |
//Setting up source text document template | |
const String strTextTemplate = "Text Templates/Bulleted List.txt"; | |
//Setting up destination text document report | |
const String strTextReport = "Text Reports/Bulleted List Report.txt"; | |
try | |
{ | |
//Instantiate DocumentAssembler class | |
DocumentAssembler assembler = new DocumentAssembler(); | |
//Call AssembleDocument to generate Bulleted List Report in text format | |
assembler.AssembleDocument(CommonUtilities.GetSourceDocument(strTextTemplate), | |
CommonUtilities.SetDestinationDocument(strTextReport), | |
new DataSourceInfo(DataLayer.GetProductsData(), "products")); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex.Message); | |
} |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.