Click here to Skip to main content
       

ASP.NET

 
QuestionControls are not displayed on using Asp:AsyncPostBackTrigger [modified] PinmemberShashank Srivastava1)3-Oct-12 20:38 
QuestionMaster Page in ASP.NET Pinmemberhiredotnet3-Oct-12 19:11 
QuestionHow to connect a database in asp.net farmwork? Pinmembersudhabnrj3-Oct-12 7:30 
AnswerRe: How to connect a database in asp.net farmwork? Pinmembersomasundarapandian4-Oct-12 4:31 
QuestionRe: How to connect a database in asp.net farmwork? PinmemberVijayChauhan1237-Oct-12 20:41 
AnswerRe: How to connect a database in asp.net farmwork? Pinmembersarathviper8-Oct-12 23:54 
QuestionBenefits of using of ADO.NET in .NET 4.0. Pinmemberhiredotnet2-Oct-12 21:48 
AnswerRe: Benefits of using of ADO.NET in .NET 4.0. PinmvpRichard MacCutchan2-Oct-12 21:58 
AnswerRe: Benefits of using of ADO.NET in .NET 4.0. Pinmembersomasundarapandian4-Oct-12 4:33 
Questioninfragistics webdatagrid editing problem please help me Pinmembersai.20121-Oct-12 13:36 
AnswerRe: infragistics webdatagrid editing problem please help me PinmvpSandeep Mewara1-Oct-12 23:14 
QuestionButton Click event is not working on specific case. Pinmemberayyappakonakalla1-Oct-12 2:54 
AnswerRe: Button Click event is not working on specific case. PinmemberSandip.Nascar1-Oct-12 22:23 
QuestionPDF file was demaged Pinmembervinothini dharmaraj1-Oct-12 1:13 
Hi, i need to open HTML file into pdf. i'm creating HTML file using String Builder then i will convert that into PDF using HTMLWorker, PDF writer. Here i can open file from my local but once i open from server then i can't open its showing pdf file was demaged.
 
Here is my code to convert pdf
 
//Pdfbuilder is string builder
 
string strPdfContent = Pdfbuilder.ToString();
 

 
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=AboDetails.pdf");
 
Response.Cache.SetCacheability(HttpCacheability.NoCache);
StringReader reader = new StringReader(strPdfContent);
Document doc = new Document(PageSize.A4, 10, 10, 0, 0);
 
HTMLWorker parser = new HTMLWorker(doc);
PdfWriter.GetInstance(doc, Response.OutputStream);
//PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(AboDetails.pdf, FileMode.Create));
 

doc.Open();
try
{

parser.Parse(reader);

Response.Write(doc);
Response.End();
}
catch (Exception ex)
{

}
finally
{
doc.Close();
}
 

Please its very urgent. If anyone knows the solutions please help me.
 
awaiting for your reply.
 
Regards,
Vinothini Dharmaraj.
AnswerRe: PDF file was demaged PinmemberEddy Vluggen2-Oct-12 4:51 
Questionconnection string Web.config + ASP.net C# [modified] Pinmemberjojoba20111-Oct-12 0:09 
AnswerRe: connection string Web.config + ASP.net C# Pinmemberrock_monu1-Oct-12 0:16 
QuestionRe: connection string Web.config + ASP.net C# [modified] Pinmemberjojoba20111-Oct-12 0:40 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan1-Oct-12 1:13 
QuestionRe: connection string Web.config + ASP.net C# PinmemberMember 94738091-Oct-12 4:23 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan1-Oct-12 4:31 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan1-Oct-12 4:33 
QuestionRe: connection string Web.config + ASP.net C# PinmemberMember 94738091-Oct-12 7:05 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan1-Oct-12 7:37 
QuestionRe: connection string Web.config + ASP.net C# Pinmemberjojoba20111-Oct-12 22:04 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan2-Oct-12 2:52 
QuestionRe: connection string Web.config + ASP.net C# Pinmemberjojoba20112-Oct-12 3:04 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan2-Oct-12 3:26 
QuestionRe: connection string Web.config + ASP.net C# [modified] Pinmemberjojoba20112-Oct-12 6:05 
AnswerRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan2-Oct-12 6:39 
AnswerRe: connection string Web.config + ASP.net C# Pinmemberjkirkerx2-Oct-12 18:00 
GeneralRe: connection string Web.config + ASP.net C# PinmvpRichard MacCutchan3-Oct-12 1:42 
Questionconnection string in webconfig Asp.net C# PinmemberMember 94738091-Oct-12 0:05 
Questionword document open without dialog Pinmemberrajaramanperumal30-Sep-12 20:44 
QuestionHow to get advanced graphic controls in ASP.Net PinmemberVaibhav Laxman Survase30-Sep-12 19:16 
QuestionData Controls in ASP.NET Pinmemberjkmehmi30-Sep-12 7:38 
AnswerRe: Data Controls in ASP.NET PinmvpSandeep Mewara30-Sep-12 7:46 
GeneralRe: Data Controls in ASP.NET Pinmemberjkmehmi30-Sep-12 8:15 
Questionasp.net pdf file PinmemberMember 946996328-Sep-12 22:44 
AnswerRe: asp.net pdf file PinmvpSandeep Mewara28-Sep-12 23:23 
GeneralFile Upload control in Asp .net Page methods Pinmemberkkrangs28-Sep-12 22:02 
GeneralRe: File Upload control in Asp .net Page methods [modified] Pinmemberjkirkerx29-Sep-12 19:30 
GeneralRe: File Upload control in Asp .net Page methods [modified] Pinmemberkkrangs30-Sep-12 22:04 
GeneralRe: File Upload control in Asp .net Page methods Pinmemberjkirkerx1-Oct-12 6:08 
GeneralRe: File Upload control in Asp .net Page methods Pinmemberjkirkerx1-Oct-12 7:41 
GeneralRe: File Upload control in Asp .net Page methods Pinmemberkkrangs10-Oct-12 4:44 
GeneralRe: File Upload control in Asp .net Page methods Pinmemberjkirkerx10-Oct-12 6:42 
GeneralRe: File Upload control in Asp .net Page methods Pinmembersarathviper8-Oct-12 23:59 
GeneralRe: File Upload control in Asp .net Page methods Pinmemberkkrangs10-Oct-12 5:00 
QuestionI am facing error, BC30451: Name 'this' is not declared PinmemberAnjani Kant28-Sep-12 20:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid