Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pdf Output a blank page.

Status
Not open for further replies.

Premalm

Programmer
Mar 20, 2002
164
US
Hi Guys,

I have a Asp.NEt application in which I want the output to be in a PDF file.
I am able to create the out put in a pdf format but when I try to view it, it shows me a blank page. Here's the code I have:
Response.BufferOutput = True
Response.Clear()
Response.ContentType = "application/pdf"
oDocument.Write(Response)
Response.Flush()
Response.Close()

Any Ideas ?

Any help is appreciated.

Thank you
Premal


 
Premalm -

I have been involved this week with sending DataGrids to Excel, XML, modifying css for Printer Friendly copies, etc. I caputred this link some time ago for conversion to PDF, they've been around for awhile so I'll share it with you:


It just so happens that I was in the process of trying to work something up as well to send a Report to pdf but have not come across any free 3d party packages; I'll give your code a test run and see what happens. I'm only a technical level user of dot NET so am limited in my ability to give first rate advice on peripheral topics such as this.
 
dvannoy - did a little research on this and you're on the right track; Crystal Reports is probably what Premalm is using -- havent' used Crystal myself so can't offer to much more then recommend the above reference.
 
Guys,

We are using TallPdf.Net to create PDF files. This problem is not happening on all machines. i.e. When I run my application the pdf output is generated on some machines and is getting displayed.
On my machine its just showing a blank page with the address bar showing the name of the asp.net page which generates this output.

Any Ideas ?
Premal.
 
well you answered your own question then.

<<This problem is not happening on all machines. i.e. When I run my application the pdf output is generated on some machines and is getting displayed.

I think you need to check Tallpdf's website for tech support.

 
Isadore, if you want some sample code of how to use crystal with pdf,excel etc. just let me know. once you get pass the pains of crystal it becomes very simple.

 
dvannoy - I'll keep that in mind; thanks. I've always known Crystal Reports was top notch; just haven't had time to venture there; but that time may be coming up as I prepare to launch a website for a new bussiness I am starting -- and the use of Crystal Reports sounds attractive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top