brucegonewild
Programmer
Hi there,
I have a form made up of two web-user-controls. In one web-user control, I have a third party graph (saved as an image). In the other user-control I have a data-grid displaying very simple set of rows with some text and numbers in it.
What I have to do is to export the content of my main form (the container of the two user-controls) to PDF and JPEG. The third party can save itself to a JPEG file no problem. when I try to attach the content of my summary table as binary to the file containing the saved-chart, the entire file gets corrupted and un-viewable.
Aftter hours of trying I have concluded the best thing to do would be to use the "Graphics" library and turn the data-grid to an image. My problem of course is creating a graphics object for this summary-table.
My question:
Do you know of any way to create a "Graphics" object from a Web-User-Control. It seems like System.Windows.Forms.Control has a "CreateGraphic()" method whereas System.Web.UI.Control doesn't...
Your help is much appreciated!
I have a form made up of two web-user-controls. In one web-user control, I have a third party graph (saved as an image). In the other user-control I have a data-grid displaying very simple set of rows with some text and numbers in it.
What I have to do is to export the content of my main form (the container of the two user-controls) to PDF and JPEG. The third party can save itself to a JPEG file no problem. when I try to attach the content of my summary table as binary to the file containing the saved-chart, the entire file gets corrupted and un-viewable.
Aftter hours of trying I have concluded the best thing to do would be to use the "Graphics" library and turn the data-grid to an image. My problem of course is creating a graphics object for this summary-table.
My question:
Do you know of any way to create a "Graphics" object from a Web-User-Control. It seems like System.Windows.Forms.Control has a "CreateGraphic()" method whereas System.Web.UI.Control doesn't...
Your help is much appreciated!