Skip to main content

Posts

Showing posts from May, 2009

How To Export WebPage as Image in asp..net

In this post i will show how to export Webpage as image in asp.net Start Visual Studio 2005.Create a Web site.Add Reference of System.Windows.Forms Add AspCompat="true" in page attribute.Verify that the following namespaces are included in the ExportWebPageToImage.cusing System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Drawing; using System.Drawing.Imaging; using System.Windows.Forms; Here is complete source code <%@ Page Language="C#" AspCompat="true" AutoEventWireup="true" CodeFile="ExportWebPageToImage.aspx.cs" Inherits="ExportWebPageToImage" %><!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title></…