Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for avinashb3

[CODE] public static void ServeAsPDF(System.Web.UI.Page webPage, Boolean download, String FileName) { try { string htmlString = GetHtmlForPage(webPage); webPage.Response.Buffer = true; webPage.Response.Clear(); webPage.Response.ContentType = "application/vnd.ms-word"; //application/octet-stream webPage.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8; webPage.Response.Charset = "UTF-8"; webPage.Response.AddHeader("Content-Disposition:", "attachment; filename="+ FileName +""); webPage.Response.AddHeader("cache-control", "must-revalidate"); webPage.Response.Write("<html xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns:m='http://schemas.microsoft.com/office/2004/12/omml' xmlns='http://www.w3.org/TR/REC-html40'>"); webPage.Response.Write("<head>"); webPage.Response.Write("<title>PF FUND</title>"); webPage.Response.Write("<META HTTP-EQUIV='Content-Type' CONTENT='text/html; …

Member Avatar for avinashb3
0
700
Member Avatar for Pankaj18

Hi, Need some help with an problem that bugging me.. I have to open a .doc file at the client side when the user clicks a button. Opening is not a problem.. I am able to do it using the following code which is executed when the user clicks on …

Member Avatar for LaxLoafer
0
1K