Displaying an Org Chart

S

Sahil Malik [MVP]

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
 
R

Rob Schieber

Sahil said:
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

Hi Sahil,

Although I haven't used their Org Chart Software specifically, I know
that Dundas Software has them, and their Standard charting Software has
been great to work with.

http://www.dundas.com/products/diagram/gallery/gallery.aspx?ImgGroup=Relationship
 
S

Sahil Malik [MVP]

Thanks Rob. Well one of the biggest issues with any OTS product is .. THEY
LOOK UGLY as hell. Dundas chart is like the least worse out of the bunch,
but still ugly lookin'. :(
 
G

Guest

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(object sender, System.EventArgs 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.FromImage(chartImg);
Canvas.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
Canvas.CompositingQuality =
System.Drawing.Drawing2D.CompositingQuality.HighQuality;

// Paint the background
Canvas.FillRectangle(FillBrush, -1, -1, chartImg.Width + 1, chartImg.Height
+ 1);


//do your or chart generation here

Response.ContentType = "image/jpeg";
// put the image into the memory stream
chartImg.Save(Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Jpeg);
Response.End();
}

Hope this helps,
 
W

Willy Denoyette [MVP]

From the v2.0 System.Drawing namespace docs...
Caution
Classes within the System.Drawing namespace are not supported for use within
a Windows or ASP.NET service. Attempting to use these classes from within
one of these application types may produce unexpected problems, such as
diminished service performance and run-time exceptions.
, note that this caution is not included in the v1.x docs, though it is also
valid for v1.x. You should never use this namespace in asp.net

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top