Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
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 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 November 22nd, 2004, 04:15 PM
Registered User
 
Join Date: Nov 2004
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
 
Old November 23rd, 2004, 12:28 AM
Friend of Wrox
 
Join Date: Jun 2004
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
 
Old November 29th, 2004, 12:39 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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).
 
Old November 2nd, 2007, 12:58 PM
Registered User
 
Join Date: Oct 2007
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





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





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