Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7181081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:28:56+00:00 2026-05-28T17:28:56+00:00

I am writing a PDF file from C# like this: Response.ContentType = application/vnd.pdf; Response.AddHeader(content-disposition,

  • 0

I am writing a PDF file from C# like this:

Response.ContentType = "application/vnd.pdf";
Response.AddHeader("content-disposition", "attachment;filename=test.pdf");
Response.Write("<table border='1px'>");

/* Print Headers */
Response.Write("<tr>");
Response.Write("<th colspan='" + colspan + "'style='background-color:SlateGray;font-size:16;height:25;color:white;'><b>List of Candidates  "</b></th>");
Response.Write("</tr>");
Response.Write("<tr>");

When I save the file and open it, it throws an exception that file is not supported file type .. or file has been damaged.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:28:58+00:00Added an answer on May 28, 2026 at 5:28 pm

    to create pdf form html you should have a look at it.

    Render PDF in iTextSharp from HTML with CSS

    to create tables using itextsharp have a look at it

    http://www.mikesdotnetting.com/Article/86/iTextSharp-Introducing-Tables

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a multi threaded console application which downloads pdf files from the web
I am writing an application that would download and replace a pdf file only
I'm writing a PDF file directly from code, it's all working nicely, but I
I'm writing a PDF file directly from code. I'm now at the stage where
I am writing a sample application to convert a DOC file into a PDF.
When user requests to download a document, I'm writing out a PDF file to
i am writing some code in vb.net that will be generating a pdf file.
I'm trying to save a file (pdf or image) uploaded from a form into
I would like to add a PDF file containing corperate identity information and graphics
Possible Duplicates: Converting HTML Files to PDF PDF file generation from XML or HTML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.