Open PDF via ASP

C

CJM

I'm dynamically creating a PDF file using a 3rd-Party component. I've got
this much working...

However, once the PDF has been created, I want to open it in the browser.
This is where I am struggling...

I can create a page with a link to the PDF, but I dont know how to open the
PDF in the browser directly.

Any ideas?

Chris
 
J

John Blessing

CJM said:
I'm dynamically creating a PDF file using a 3rd-Party component. I've got
this much working...

However, once the PDF has been created, I want to open it in the browser.
This is where I am struggling...

I can create a page with a link to the PDF, but I dont know how to open
the PDF in the browser directly.

Any ideas?

Chris


Response.redirect http://yoursite.com/yourdoc.pdf

If the user doesn't have Acrobat reader installed then it will just bring up
a download box.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
 
M

McKirahan

CJM said:
I'm dynamically creating a PDF file using a 3rd-Party component. I've got
this much working...

However, once the PDF has been created, I want to open it in the browser.
This is where I am struggling...

I can create a page with a link to the PDF, but I dont know how to open the
PDF in the browser directly.

Any ideas?

Chris


Have you tried a Response.Redirect to the PDF's URL?
 
C

CJM

Thanks Guys...

I'd already tried Response.Redirect (on my home machine) and it didnt work.
However, displaying a normal link which points to the PDF worked OK, though
it required that the user click on the link.

However, I'm back on my normal development machine, and the very same code
works fine...!

I'm not sure what the problem was/is, but I'll close this thread and create
a new one if the problem persists...

Thanks

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top