473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Load PDF in ASPX


Hello mister, I want to use AcroPDF.dll (ActiveX for Acrobat Reader 7.0) in
an application web ASP.NET 2.0.

My question, it is possible ?? What I can do about it ?

The target for me is load PDF files in a ASPX page.

Thanks, mister. Greetings.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

Apr 9 '07 #1
6 12048
"Alhambra-Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:D7**********************************@microsof t.com...
Hello mister,
Er, hello...

I want to use AcroPDF.dll (ActiveX for Acrobat Reader 7.0) in
an application web ASP.NET 2.0.

My question, it is possible ?? What I can do about it ?
http://www.google.co.uk/search?sourc...22ASP%2eNET%22
The target for me is load PDF files in a ASPX page.
When you say "load" PDF files, what does that mean...?

If you just want to display a PDF file in a browser, just point at it...
http://help.adobe.com/en_US/Reader/8.0/help.pdf
Apr 9 '07 #2
Perhaps a bit more information is required--what exactly are you trying to
do? If you're simply trying to have a PDF open up for the target user, you
can specify the content type of "application/pdf" and the web browser will
automatically activate Adobe Acrobat for inline reading.

HttpContext.Current.Response.ContentType = "application/pdf";
HttpContext.Current.Response.AddHeader("content-disposition", "inline; filename=thePDFfilename.pdf");

HttpContext.Current.Response.BinaryWrite(_objectBy tes);
HttpContext.Current.Response.End();

Replace _objectBytes with the stream from either your filesystem or a database.

HTH.

---
David R. Longnecker
Web Developer
http://blog.tiredstudent.com
Hello mister, I want to use AcroPDF.dll (ActiveX for Acrobat Reader
7.0) in an application web ASP.NET 2.0.

My question, it is possible ?? What I can do about it ?

The target for me is load PDF files in a ASPX page.

Thanks, mister. Greetings.

Apr 9 '07 #3
Hello Mister,

I want to display a PDF file in a browser like IE. The "PDF viewer" should
be in my ASPX Page. My page has several contents (HTML, Images,...) and too
the PDF document.

Thanks.
http://www.google.co.uk/search?sourc...22ASP%2eNET%22
The target for me is load PDF files in a ASPX page.

When you say "load" PDF files, what does that mean...?

If you just want to display a PDF file in a browser, just point at it...
http://help.adobe.com/en_US/Reader/8.0/help.pdf
Apr 9 '07 #4
"Alhambra-Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:05**********************************@microsof t.com...
Hello Mister,
Please don't say that - not very polite in English...
I want to display a PDF file in a browser like IE. The "PDF viewer" should
be in my ASPX Page. My page has several contents (HTML, Images,...) and
too
the PDF document.
Sounds like you need an <iframewith its src property pointing to your PDF
file:
http://htmlhelp.com/reference/html40...al/iframe.html
Apr 9 '07 #5
Does this AcroPDF.dll have a viewer in the code base? If not, you have a
couple of options.

1. Pop up a PDF file. This is not exactly a "viewer", but if the person has
downloaded the latest Acrobat (9.x), he will get the viewer control in his
browser. And, it will leave your site open. The method of "popping up" a PDF
is using the PDF library to create the file and aiming the browser at it.

2. Add an IFrame to the page and display the PDF file there. You will create
an ASPX page that calls the PDF control and outputs the document. This is
Mark's suggestion.

3. Create the PDF as a streamed document and use David's suggestion. Unlike
Excel or XML, PDF is a bit more complex in this regard, so I am not sure it
will work. Perhaps AcroPDF overcomes this?

Without an understanding of AcroPDF and your meaning of loading PDF pages.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
"Alhambra-Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:D7**********************************@microsof t.com...
>
Hello mister, I want to use AcroPDF.dll (ActiveX for Acrobat Reader 7.0)
in
an application web ASP.NET 2.0.

My question, it is possible ?? What I can do about it ?

The target for me is load PDF files in a ASPX page.

Thanks, mister. Greetings.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
Apr 9 '07 #6
Hi mister,

the ActiveX for Acrobat, AcroPDF.dll, is only for WinForms, not Web
applications.

The best solution for my issue is to use an IFRAME tag. I found this
WebControl:

http://www.codeproject.com/aspnet/Em...inWebpages.asp

Thanks for your help, it's great

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
www.trabajobasura.com/solusoft
"Cowboy (Gregory A. Beamer)" wrote:
Does this AcroPDF.dll have a viewer in the code base? If not, you have a
couple of options.

1. Pop up a PDF file. This is not exactly a "viewer", but if the person has
downloaded the latest Acrobat (9.x), he will get the viewer control in his
browser. And, it will leave your site open. The method of "popping up" a PDF
is using the PDF library to create the file and aiming the browser at it.

2. Add an IFrame to the page and display the PDF file there. You will create
an ASPX page that calls the PDF control and outputs the document. This is
Mark's suggestion.

3. Create the PDF as a streamed document and use David's suggestion. Unlike
Excel or XML, PDF is a bit more complex in this regard, so I am not sure it
will work. Perhaps AcroPDF overcomes this?

Without an understanding of AcroPDF and your meaning of loading PDF pages.

Apr 10 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt | last post by:
Hello, I just don't get it. I have a simple webform1.aspx page, when loaded for the first time, the load even fires which is fine. In webform1.aspx i have a button that has a onclick event,...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
12
by: Ian Murphy | last post by:
Hopefully someone else has seen something similar. We are experiencing an odd problem with aspnet, iis6 and w2k3. I have written a small site which works fine during the day. Each morning however...
1
by: Reza Nabi | last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a...
3
by: Frank Uray | last post by:
Hi all I have a problem with loading a assembly ... I am trying to do the following: - I have a directory with a dll (assembly) in it (not the currect dir.) - I am trying to load this assembly,...
5
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I know that VS 2005 has a lot of testing features and already used them for doing web load testing. I am wondering if it is possible to load test a win forms application. I don't mean writing...
1
by: William LaMartin | last post by:
I have an aspx page, A.aspx, that uses some xml. The source of the xml is another aspx page, B.aspx. B.aspx is populated with xml by code that depends on several Session variables. This all...
1
by: john20 | last post by:
Hi All, I am having a problem with accesing function in the page. i have a page say user.aspx in the page load method i am calling function to validate the user. it works fine when single...
5
by: Med | last post by:
Hi, Initial load of my pre-compiled ASP.NET app takes more than 50 seconds to load after site has been idle for a while. Then it become fairly fast. Followings are my app/hardware configs: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.