Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
Document document = new Document(); PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(Server.MapPath("Chap0102.pdf"), FileMode.Create)); document.Open(); ....Do some stuff with the PDF here First code: Response.Redirect(Server.MapPath("Chap0102.pdf")); //I get Access denied even tho i gave ASPNET rights to the folder Second Code: //get access denied as well Page.ClientScript.RegisterStartupScript(this.GetType(), "pdf", "window.open(' " + Server.MapPath("Chap0102.pdf") + "');", true); third code: nothing happens string FilePath = MapPath(Server.MapPath("Chap0102.pdf")); Response.Clear(); Response.ContentType = "application/pdf"; Response.AppendHeader("Content-Disposition", FilePath); Response.WriteFile(FilePath); Response.End(); //close the document document.close(); //i've also tried closing the document before poping up the PDF
|ASP.NET C# export very large array to excel||9||45|
|custome paging in C# & oracle using inline queries.||12||29|
|How to get boolean result of md5sum from two files in powershell||8||46|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!