I have a page a that you select a company on -> click Submit -> this takes you to the report.aspx page.
The report.aspx page has over 300 lines of data in a table. The table is highly stylized.
What I need to do is either make a PDF with the company name as the filename OR
Produce an .aspx page with the company name as the filename and the user can print it to PDF.
To create a pdf I've tried using
<%Response.AddHeader("content-disposition", "Attachment;Filename=" & thisCompanyName & ".pdf")
Response.ContentType = "application/pdf"%>
The file doesn't generate
I've looked at iTextSharp and it looks like it will take a bunch of coding to create the table with all the stylings in it.
To produce a new file
I took the report.aspx and change the page title to the company name then print it physically to pdf - the file comes out with Report.aspx file name. Tab at the top of the browser displays the correct company name. (Thought I used this before) No good.