tags:

views:

28

answers:

2

Hi,

How to save the drawing (contents) on a panel as an image using C# and asp.net.I found Panel1.DrawToBitmap but its not working in the asp.net ,is there any assembly i am missing or the function is all together different ?

 int width =Convert.ToInt32(Panel1.Width);
    int height = Convert.ToInt32(Panel1.Height);
    Bitmap bmp = new Bitmap(width,height);       
    Panel1.DrawToBitmap//no definition or missing assembly

Any help or suggestion will help me a lot.

Thanks,

A: 

DrawtoBitmap is a windows forms method. I don't believe there is a asp.net equivalent.

Roadie57
A: 

Since it's a web page it depends on what kind of browser is rendering the HTML that your ASP page renders. If your'e interested in how your web page looks in different browsers, http://browsershots.org/ is a fun page.

Otherwise I guess you could try to render the HTML yourself and draw that to a Bitmap.

Patrick