Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to build a report which should generate output like the image here[^]

How do I do this using C# & Visio or if possible any other tool?
Posted

1 solution

This article discusses a component which can generate an image of the required tree, based on the data in a DataTable.
Tree Chart Generator[^]

A discuss:
http://stackoverflow.com/questions/10098046/creating-a-tree-node-diagram[^]
This is a C# wrapper for the GraphViz graph generator.
http://graphviz.codeplex.com/[^]
 
Share this answer
 
Comments
BillWoodruff 14-Jan-15 3:43am    
fyi: the C# wrapper for GraphViz is now on CodePlex:

https://github.com/JamieDixon/GraphViz-C-Sharp-Wrapper
Anup Kasat 6-Feb-15 0:37am    
Thanks @Yesii And @BillWoodruff for the response. I used the Microsoft Visio for the Organigram generation. It it working totally fine on my local machine but after publishing on server it is throwing COMException :

System.Runtime.InteropServices.COMException occurred
HResult= -2032465660
Message= Object name not found.
Source= Drawing2 - Microsoft Visio
ErrorCode= -2032465660
StackTrace: at Microsoft.Office.Interop.Visio.IVMasters.get_ItemU(Object NameUIDOrIndex)
at OrganogramDesigner.Designer.GenerateDiagram(String strFileNm, String saveFolder) in e:\Solution\Accura\OrganogramDesigner\Designer.cs:line 73
InnerException:


I tried giving rights to the COM object from dcomcnfg as given in many articles for the exception but still not working.

If you can help will be appreciated.
thanks.
[no name] 17-Oct-18 1:10am    
use something that is open source instead of COM component.
With com Component, the problem is they need to be installed on your server and all the machines where your application is supposed to work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900