Hello,
Please find the attached image.
I need to display data in such hierarchical manner.
Please help me to do this using XtraReport.
Let me know if you need more details.
Thanks,
Mansi
Hello,
Please find the attached image.
I need to display data in such hierarchical manner.
Please help me to do this using XtraReport.
Let me know if you need more details.
Thanks,
Mansi
Hello Mansi,
The easiest way to accomplish this task is to bind the TreeList control to a data source and then render it in the XtraReport via PrintableComponentContainer. We look forward to your feedback once you’ve had the opportunity to implement our suggestion.
Hello Mansi,
The first thing I would like to suggest is to create a TreeListControl class descendant and implement the IPrintable interface. This will allow you to print the descendant using the PrintableComponentContainer component. This tutorial should help you achieve this goal: How to: Create a Printable ListView Descendant Implementing the IPrintable Interface.
In addition, here you can review approaches to creating a custom report control:
How to: Create a Numeric Label
How to: Create a Progress Bar Control
As for your second question, I believe that you can use our XRRichText control for this purpose. Try to assign HTML code to its Html property to achieve this goal.
Thanks,
Dmitry
Hello,
Thanks a lot for the help.
I used the second solution with XRRichText control, binding html content.
thanks again!
Mansi
Hi,
I'm glad to hear that my advice was helpful.
Feel free to contact us if you have further questions.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Mansi,
Would you please provide me with additional information about how this tree-like data is organized in your data source? Is it a plain DataTable with a predefined parent and key fields or you are using a custom object with multiple nested levels?
I am looking forward to hearing from you.
Hi Ingvar,
The data source holding the items will be a list, in which each item will have various properties like Id (unique), Name, Description, etc. Also there will be one more property to hold Parent Id, by which the hierarchical structure can be defined.
For the top most Item, the Parent Id property can be null.
Let me know if this information helps to achieve what I need.
Regards,
Mansi