Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 22nd, 2004, 04:15 PM
Registered User
 
Join Date: Nov 2004
Location: Manhatten, New York, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default open pdf file within aspx page

Hi,

can anyone tell me how to open pdf file within aspx page.

actually, I want to show other information also with on the same page with that pdf file.

thanks,
Shakti

Shakti
Reply With Quote
  #2 (permalink)  
Old November 23rd, 2004, 12:28 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Chennai, Tamil Nadu, India.
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Hi Shakti,

You can say Response.Redirect or Server.Transfer to open the pdf file. Note that only if there is acrobat installed in the client machiene, will it be opened in the browser

Regards
Ganesh
Reply With Quote
  #3 (permalink)  
Old November 29th, 2004, 12:39 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you want to show a PDF along with other things in the browser, you'll need to use a frameset or iframe tag so you can "embed" the PDF inside some other HTML. Then all you need to do is point the source of the frame at the PDF file and let the browser take care of the rest (loading the PDF reader inside that frame if there is a suitable method).
Reply With Quote
  #4 (permalink)  
Old November 2nd, 2007, 12:58 PM
Registered User
 
Join Date: Oct 2007
Location: Chennai, TN, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to srivin2k4
Default

strPDFfilePath = "file1.pdf";

<a href="#" onClick=window.open('<%=strPDFfilePath%>',"Pdf_for m","height=450px,width=700px")>PDF File</a>


Hope it will be useful..

Thanks,
Sri..
www.faqsfusion.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert .aspx page to .pdf at runtime nitinp ASP.NET 2.0 Professional 2 June 14th, 2008 05:39 AM
Convert .aspx page in .pdf sandeep.yadav.k ASP.NET 2.0 Professional 0 June 12th, 2008 06:35 AM
Implementing searching in aspx page and pdf balesh.mind ASP.NET 2.0 Professional 1 April 10th, 2008 08:55 AM
open a pdf file viren_balaut J2EE 0 January 26th, 2004 10:50 PM
open a pdf file viren_balaut Servlets 0 January 24th, 2004 01:03 AM



All times are GMT -4. The time now is 11:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.