Profile Picture

a bit confused

Posted By Costa Basil 12 Years Ago
Author
Message
Costa Basil
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 1, Visits: 1
Hi:

I downloaded this library for evaluation and I am feeling a bit overwhelmed and confused. Here is what I want to do:

I have a hierarchical sql table: id, title, parent_id with about 1000 rows.

I want to generate a hierarchical diagram for this tree in a console application (unattended):

So, in theory:
1. Create a NDrawingDocument,
2.Create an NTextShape for each item in the table
3. For each parent/child I should add a connector between them
4. I should pick a layout, and layout the whole thing
5. Use the persistence manager to save the file
6. Export the file to pdf (is it possible to export unattended?)

so basically you can say that I start with an in-memory object tree (mine) and I want to create a diagram from it.

Do you have any sample that shows me how to do this (maybe on a smaller scale)? There are so many classes and I am not too sure where is what?

Also is there a way to increase the size of the page to fit everything? Or is the layout going to increase the size of the document upon its execution?

Thanks!



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

Please, take a look at the Tree Data Import example. It demonstrates most of the features you require.

You can easily make the document fit the size of the layouted shapes by calling the document.SizeToContent() method.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic