You could do it by generating an image. In the page that needs the org chart
add:
<img src="myOrgChart .aspx">
myOrgChart.aspx would contain something like:
private void Page_Load(objec t sender, System.EventArg s e)
{
//make a image to draw on
System.Drawing. Bitmap chartImg = new Bitmap(400, 400);
// Gen a graphics object to write upon
Graphics Canvas = System.Drawing. Graphics.FromIm age(chartImg);
Canvas.Smoothin gMode = System.Drawing. Drawing2D.Smoot hingMode.HighQu ality;
Canvas.Composit ingQuality =
System.Drawing. Drawing2D.Compo sitingQuality.H ighQuality;
// Paint the background
Canvas.FillRect angle(FillBrush , -1, -1, chartImg.Width + 1, chartImg.Height
+ 1);
//do your or chart generation here
Response.Conten tType = "image/jpeg";
// put the image into the memory stream
chartImg.Save(R esponse.OutputS tream,
System.Drawing. Imaging.ImageFo rmat.Jpeg);
Response.End();
}
Hope this helps,
--
Don DenUyl
Diamond Systems
"Sahil Malik [MVP]" wrote:
I am looking for suggestions on a software that can display an Org. Chart in
a web based environment. The server runs .NET (2.0), and I have to add that
the org chart must work on Macintoshes/linux/netscape etc. So we cannot have
any sort of ActiveX Control or anything like that.
What do you recommend :)
Sahil