Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2004, 01:43 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show PDF without a webpage??

If I have a new directory, can I point to that directory with only a .pdf file inside and have the .pdf displayed in the viewer.

ie; www.mysite.com/PDF

or do I nedd a default.asp page to load the up the .pdf, if this is so what would the code be?

Thanks

__________________
-----------------------------------------------------------
\"Don\'t follow someone who\'s not going anywhere\" John Mason
 
Old March 5th, 2004, 09:09 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You could set what the "default" documents are for a virtual directory. You could certainly set a PDF as a default file (along with default.asp, index.htm, etc.). Of you would need to create an ASP file that reads the PDF and writes it out the browser using BinaryWrite. Do a search for BinaryWrite if this is how you want to proceed.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old March 6th, 2004, 09:05 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

How silly of me. I just realized the obvious answer to your question which I didn't think of yesterday...

Put a default file that has a redirect to the PDF you want to show. Then you don't need to mess with IIS settings.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Show a pdf file on the page gabrieldcr2 ASP.NET 1.0 and 1.1 Professional 2 October 5th, 2006 05:17 PM
VBA to create PDF from webpage ncarty97 Excel VBA 0 September 25th, 2006 02:48 PM
Can't show Crystal Report on webpage when Page.IsP jbeteta ASP.NET 1.0 and 1.1 Basics 0 August 10th, 2006 03:25 PM
display a pdf in a webpage crmpicco Classic ASP Basics 3 February 8th, 2005 09:59 AM
I can't show Chinese when .fo to .pdf frank-lo XSLT 2 January 20th, 2004 06:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.