Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PDF Export with Custom Nodes (Read 1431 times)
ChrisGC
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Jul 2nd, 2010
PDF Export with Custom Nodes
Jul 22nd, 2010 at 5:58pm
Print Post  
Hi again Stoyo,

The next step in my project is to export to PDF. I have no issue with taking the approach detailed in:

http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=125248...


But I note your comment on custom nodes:

http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=125836...

I have custom nodes similar to those in the OrgChart example (using a ControlTemplate: generic.xaml)... Therefore before I go too far down this route, am I going to run into the aforementioned issues? If so any pointers?

Regards,

Chris
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDF Export with Custom Nodes
Reply #1 - Jul 22nd, 2010 at 6:32pm
Print Post  
Hi Chris,

You will have to implement the custom node class on the server side too, and call RegisterItemClass to be able to load the diagram XML.

You will also have to implement the node.Draw method using GDI+ code, or from what I have seen in your screenshots you might easily replace the custom nodes with TableNodes to reuse their rendering. E.g. the table would have 2 columns x 8 rows, and you can copy the custom data to the table cells and set ColumnSpan = 2 for the image cell.

Implementing node.Draw won't be much more work than transferring the custom data to a TableNode though.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint