Click here to Skip to main content
11,704,315 members (52,501 online)
   

ASP.NET

 
QuestionControls are not displayed on using Asp:AsyncPostBackTrigger Pin
Shashank Srivastava1)3-Oct-12 20:38
memberShashank Srivastava1)3-Oct-12 20:38 
QuestionMaster Page in ASP.NET Pin
hiredotnet3-Oct-12 19:11
memberhiredotnet3-Oct-12 19:11 
QuestionHow to connect a database in asp.net farmwork? Pin
sudhabnrj3-Oct-12 7:30
membersudhabnrj3-Oct-12 7:30 
AnswerRe: How to connect a database in asp.net farmwork? Pin
somasundarapandian4-Oct-12 4:31
membersomasundarapandian4-Oct-12 4:31 
QuestionRe: How to connect a database in asp.net farmwork? Pin
VijayChauhan1237-Oct-12 20:41
memberVijayChauhan1237-Oct-12 20:41 
AnswerRe: How to connect a database in asp.net farmwork? Pin
sarathviper8-Oct-12 23:54
membersarathviper8-Oct-12 23:54 
QuestionBenefits of using of ADO.NET in .NET 4.0. Pin
hiredotnet2-Oct-12 21:48
memberhiredotnet2-Oct-12 21:48 
AnswerRe: Benefits of using of ADO.NET in .NET 4.0. Pin
Richard MacCutchan2-Oct-12 21:58
mvpRichard MacCutchan2-Oct-12 21:58 
AnswerRe: Benefits of using of ADO.NET in .NET 4.0. Pin
somasundarapandian4-Oct-12 4:33
membersomasundarapandian4-Oct-12 4:33 
Questioninfragistics webdatagrid editing problem please help me Pin
sai.20121-Oct-12 13:36
membersai.20121-Oct-12 13:36 
AnswerRe: infragistics webdatagrid editing problem please help me Pin
Sandeep Mewara1-Oct-12 23:14
mvpSandeep Mewara1-Oct-12 23:14 
QuestionButton Click event is not working on specific case. Pin
ayyappakonakalla1-Oct-12 2:54
memberayyappakonakalla1-Oct-12 2:54 
AnswerRe: Button Click event is not working on specific case. Pin
Sandip.Nascar1-Oct-12 22:23
memberSandip.Nascar1-Oct-12 22:23 
QuestionPDF file was demaged Pin
vinothini dharmaraj1-Oct-12 1:13
membervinothini 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 Pin
Eddy Vluggen2-Oct-12 4:51
memberEddy Vluggen2-Oct-12 4:51 
Questionconnection string Web.config + ASP.net C# Pin
jojoba20111-Oct-12 0:09
memberjojoba20111-Oct-12 0:09 
AnswerRe: connection string Web.config + ASP.net C# Pin
rock_monu1-Oct-12 0:16
memberrock_monu1-Oct-12 0:16 
QuestionRe: connection string Web.config + ASP.net C# Pin
jojoba20111-Oct-12 0:40
memberjojoba20111-Oct-12 0:40 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan1-Oct-12 1:13
mvpRichard MacCutchan1-Oct-12 1:13 
QuestionRe: connection string Web.config + ASP.net C# Pin
Member 94738091-Oct-12 4:23
memberMember 94738091-Oct-12 4:23 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan1-Oct-12 4:31
mvpRichard MacCutchan1-Oct-12 4:31 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan1-Oct-12 4:33
mvpRichard MacCutchan1-Oct-12 4:33 
QuestionRe: connection string Web.config + ASP.net C# Pin
Member 94738091-Oct-12 7:05
memberMember 94738091-Oct-12 7:05 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan1-Oct-12 7:37
mvpRichard MacCutchan1-Oct-12 7:37 
QuestionRe: connection string Web.config + ASP.net C# Pin
jojoba20111-Oct-12 22:04
memberjojoba20111-Oct-12 22:04 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan2-Oct-12 2:52
mvpRichard MacCutchan2-Oct-12 2:52 
QuestionRe: connection string Web.config + ASP.net C# Pin
jojoba20112-Oct-12 3:04
memberjojoba20112-Oct-12 3:04 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan2-Oct-12 3:26
mvpRichard MacCutchan2-Oct-12 3:26 
QuestionRe: connection string Web.config + ASP.net C# Pin
jojoba20112-Oct-12 6:05
memberjojoba20112-Oct-12 6:05 
AnswerRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan2-Oct-12 6:39
mvpRichard MacCutchan2-Oct-12 6:39 
AnswerRe: connection string Web.config + ASP.net C# Pin
jkirkerx2-Oct-12 18:00
memberjkirkerx2-Oct-12 18:00 
GeneralRe: connection string Web.config + ASP.net C# Pin
Richard MacCutchan3-Oct-12 1:42
mvpRichard MacCutchan3-Oct-12 1:42 
Questionconnection string in webconfig Asp.net C# Pin
Member 94738091-Oct-12 0:05
memberMember 94738091-Oct-12 0:05 
Questionword document open without dialog Pin
rajaramanperumal30-Sep-12 20:44
memberrajaramanperumal30-Sep-12 20:44 
QuestionHow to get advanced graphic controls in ASP.Net Pin
Vaibhav Laxman Survase30-Sep-12 19:16
memberVaibhav Laxman Survase30-Sep-12 19:16 
QuestionData Controls in ASP.NET Pin
jkmehmi30-Sep-12 7:38
memberjkmehmi30-Sep-12 7:38 
AnswerRe: Data Controls in ASP.NET Pin
Sandeep Mewara30-Sep-12 7:46
mvpSandeep Mewara30-Sep-12 7:46 
GeneralRe: Data Controls in ASP.NET Pin
jkmehmi30-Sep-12 8:15
memberjkmehmi30-Sep-12 8:15 
Questionasp.net pdf file Pin
Member 946996328-Sep-12 22:44
memberMember 946996328-Sep-12 22:44 
AnswerRe: asp.net pdf file Pin
Sandeep Mewara28-Sep-12 23:23
mvpSandeep Mewara28-Sep-12 23:23 
GeneralFile Upload control in Asp .net Page methods Pin
kkrangs28-Sep-12 22:02
memberkkrangs28-Sep-12 22:02 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx29-Sep-12 19:30
memberjkirkerx29-Sep-12 19:30 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs30-Sep-12 22:04
memberkkrangs30-Sep-12 22:04 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx1-Oct-12 6:08
memberjkirkerx1-Oct-12 6:08 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx1-Oct-12 7:41
memberjkirkerx1-Oct-12 7:41 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs10-Oct-12 4:44
memberkkrangs10-Oct-12 4:44 
GeneralRe: File Upload control in Asp .net Page methods Pin
jkirkerx10-Oct-12 6:42
memberjkirkerx10-Oct-12 6:42 
GeneralRe: File Upload control in Asp .net Page methods Pin
sarathviper8-Oct-12 23:59
membersarathviper8-Oct-12 23:59 
GeneralRe: File Upload control in Asp .net Page methods Pin
kkrangs10-Oct-12 5:00
memberkkrangs10-Oct-12 5:00 
QuestionI am facing error, BC30451: Name 'this' is not declared Pin
Anjani Kant28-Sep-12 20:38
memberAnjani 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
Web04 | 2.8.150819.1 | Last Updated 28 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid