Chart4.NET Version 4.1 is released.
PDF Export of the organization is available (both in Desktop and ASP.NET applications).
Also PDF/Image rendering of the chart is available for ASP.NET version.
New Version: 4.1
New Features:
- PDF export of organization chart (web and desktop).
- PDF rendering, download provisioning and customization (ASP.NET).
- Enumeration & Customization - hpcData has Nodes[Name], Tags[TagName], NodesAll, NodeList properties & NodeByName method.
- Drawing improvements & Highlight full-path on focusing a node.
1. PDF ExportChart can exported as it is displayed (simple), or decorating with header, footer, time-stamp, margins, background etc. (advanced)
Export to Image (JPEG, GIF, PNG, BMP)Simple -
http://chart4.net/html/M_UnifoChart_Hierarchy_HierarchyTools_ExportChartToImageFile.htmOptions -
http://chart4.net/html/M_UnifoChart_Hierarchy_HierarchyTools_ExportChartToImageFile_1.htmExport to PDF FileSimple -
http://chart4.net/html/M_UnifoChart_Hierarchy_HierarchyTools_ExportChartToPdfFile.htmAdvanced Export - PDF/Image FileGeneral -
http://chart4.net/html/M_UnifoChart_Hierarchy_HierarchyTools_ExportChart.htmChart Export OptionsExport Options -
http://chart4.net/html/T_UnifoChart_Hierarchy_ChartExportOptions.htmTo experiment with organization chart export settings:
See winform samples in Samples here:
http://unifosys.com/hierarchy-chart/samples.html
2. PDF Rendering (ASP.NET)2.1. Simple PDF RenderingYou can simply put the query-string
format=pdf to render the chart in PDF:
2.2. Customized PDF RenderingYou can put PDF rendering settings within the
heHierarchyExport event:
1. Within the webform html component tag:
<cc1:HierarchyWeb ... OnheHierarchyExport="HierarchyWeb1_heHierarchyExport"/>
2. Code behind:
protected void HierarchyWeb1_heHierarchyExport(object sender, HierarchyExportEventArgs e)
{
e.ExportOptions.PageMargin = new System.Drawing.Size(50, 50);
}
These settings are optional (page margin, chart-header, chart-footer etc.)
N.B: 1 - Event settings will override any querystring settings (regarding format,attach).
N.B: 2 - You can export the chart to a server file (if required) within the event.
string sPath = HttpContext.Current.Server.MapPath("\\");
HierarchyWeb1.hpcTools.ExportChartToPdfFile(sPath + "exported.pdf", e.ExportOptions);
See web samples from Samples here:
http://unifosys.com/hierarchy-chart/samples.htmlEvent:
http://chart4.net/html/E_UnifoChart_Hierarchy_HierarchyWeb_heHierarchyExport.htm3. Image Rendering (ASP.NET)You can simply put the query-string like
format=jpeg to render the chart in an image format.
Other allowed formats are jpeg, gif, png and bmp.
4. Download Provisioning (ASP.NET)You can simply put the query-string like
format=pdf&attach=filename to offer the chart to download in PDF/image format.
User will get a (
Save To prompt) from the browser.
Allowed formats are pdf, jpeg, gif, png and bmp.
Examples:
Webform1.aspx?format=pdf&attach=orgchart.pdf
Webform1.aspx?format=jpeg&attach=orgchart.jpg
5. Enumeration & CustomizationMore methods and properties to access chart node's underlying data and settings to customize it after chart is loaded with data.
(eg: in a node-click, on an external event etc.)
Details here:
http://unifosys.com/helpdesk/knowledgebase.php?article=186. Highlight Full-path on Node FocusWhen a node is focused, all the predecessors are highlighted to depict the full path to item.

Set hpcSettings.ShowFocusFullPath to enable/disable this feature. Default is true.
Samples & Downloads:
http://unifosys.com/hierarchy-chart/samples.htmlDocumentation:
http://chart4.net/See also:
Organization Chart Control for Large Trees of Information -
http://unifosys.com/support/index.php?topic=102.0