Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 01, 2011 07:52 AM by roshnicoms
Member
39 Points
23 Posts
Sep 23, 2011 08:29 AM|LINK
Hello ,
I would like to save content of div as jpg ??
I mean to say , as it looks in browser , same content of div , i want to save as jpg.
I just go through this link : http://forums.asp.net/t/1117630.aspx/1/10
but this solutions saves content of my div like in this manner
: "<img id="mainimage" src="Image/cup.jpg" height="150px;" width="150px;" />"
i want to save this image (right now there is one image , but it might be more than one ) which is content of this div as Jpg ... !
Its urgent. Please help me anybody ...
Thanks in advance.
div html asp.net image
Contributor
5266 Points
771 Posts
Sep 23, 2011 08:43 AM|LINK
Hi Friend,
Try this one
http://iecapt.sourceforge.net/
Sep 23, 2011 08:52 AM|LINK
Thanks for quick reply ,
but i think this will capture my whole web page ...
i dnt want that , i want to save only some portion of my Div .... !!
All-Star
75950 Points
5608 Posts
Sep 28, 2011 08:29 AM|LINK
Hi,
You can use the httpwebrequset to request the webpage.
And use the string.substring to get the div control, then use the following way to capture the image.
Please check the following link:
tp://www.codeproject.com/KB/graphics/IECapture.aspx
http://ramanisandeep.wordpress.com/2009/12/05/capture-web-page-as-image-using-asp-net/
Oct 01, 2011 07:52 AM|LINK
Hello,
Thanks for your reply ...
but your these links don't help me ...
actually , i would like to give this capture functionality to my client who is using my web application ..
so if possible please let me know , how can I implement that code so my client will capture image
your given link : http://ramanisandeep.wordpress.com/2009/12/05/capture-web-page-as-image-using-asp-net/ for that i can get command prompt for long time.
can u suggest me different solution to capture div ??
roshnicoms
Member
39 Points
23 Posts
How to save the DIV content (Image , Text) as jpg file?
Sep 23, 2011 08:29 AM|LINK
Hello ,
I would like to save content of div as jpg ??
I mean to say , as it looks in browser , same content of div , i want to save as jpg.
I just go through this link : http://forums.asp.net/t/1117630.aspx/1/10
but this solutions saves content of my div like in this manner
: "<img id="mainimage" src="Image/cup.jpg" height="150px;" width="150px;" />"
i want to save this image (right now there is one image , but it might be more than one ) which is content of this div as Jpg ... !
Its urgent. Please help me anybody ...
Thanks in advance.
div html asp.net image
prasadP
Contributor
5266 Points
771 Posts
Re: How to save the DIV content (Image , Text) as jpg file?
Sep 23, 2011 08:43 AM|LINK
Hi Friend,
Try this one
http://iecapt.sourceforge.net/
Blog
roshnicoms
Member
39 Points
23 Posts
Re: How to save the DIV content (Image , Text) as jpg file?
Sep 23, 2011 08:52 AM|LINK
Hello ,
Thanks for quick reply ,
but i think this will capture my whole web page ...
i dnt want that , i want to save only some portion of my Div .... !!
Hua-Jun Li -...
All-Star
75950 Points
5608 Posts
Re: How to save the DIV content (Image , Text) as jpg file?
Sep 28, 2011 08:29 AM|LINK
Hi,
You can use the httpwebrequset to request the webpage.
And use the string.substring to get the div control, then use the following way to capture the image.
Please check the following link:
tp://www.codeproject.com/KB/graphics/IECapture.aspx
http://ramanisandeep.wordpress.com/2009/12/05/capture-web-page-as-image-using-asp-net/
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
roshnicoms
Member
39 Points
23 Posts
Re: How to save the DIV content (Image , Text) as jpg file?
Oct 01, 2011 07:52 AM|LINK
Hello,
Thanks for your reply ...
but your these links don't help me ...
actually , i would like to give this capture functionality to my client who is using my web application ..
so if possible please let me know , how can I implement that code so my client will capture image
your given link : http://ramanisandeep.wordpress.com/2009/12/05/capture-web-page-as-image-using-asp-net/ for that i can get command prompt for long time.
can u suggest me different solution to capture div ??