Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Open PDF via ASP

Reply
Thread Tools

Open PDF via ASP

 
 
CJM
Guest
Posts: n/a
 
      01-16-2005
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


 
Reply With Quote
 
 
 
 
John Blessing
Guest
Posts: n/a
 
      01-16-2005
"CJM" <> wrote in message
news:...
> 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


 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      01-16-2005
"CJM" <> wrote in message
news:...
> 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?


 
Reply With Quote
 
CJM
Guest
Posts: n/a
 
      01-17-2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postscript to PDF with pdf-tools, pdf-writer, or other Sean Nakasone Ruby 1 04-14-2008 09:13 PM
PDF::Writer, create pdf and insert in other pdf file. Ricardo Pog Ruby 1 03-26-2008 08:24 PM
Redirect from asp page to a PDF causes the PDF to be downloaded as the ASP name Steve Mauldin ASP General 1 07-28-2005 05:02 PM
Open linked PDF-Files from a PDF-File Paul Kuebler ASP .Net 8 08-18-2003 04:42 PM
Re: Open linked PDF-Files from a PDF-File Carl Prothman [MVP] ASP .Net 4 08-12-2003 09:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57