473,386 Members | 1,997 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.

PDF Viewer Control

Does anyone know of an ASP.net control that will allow viewing a pdf file?
Without streaming the file to the browser. I have to display a pdf without
the pdf being stored on the web server and also not have the user prompted
for a download.

Thanks in advance,
Rick
May 30 '07 #1
6 9195
If the information is not sent to the browser how will it work ?
"Rick" <rf*****@newsgroups.nospamwrote in message news:O%****************@TK2MSFTNGP03.phx.gbl...
Does anyone know of an ASP.net control that will allow viewing a pdf file? Without streaming the file to the browser. I have to
display a pdf without the pdf being stored on the web server and also not have the user prompted for a download.

Thanks in advance,
Rick

May 30 '07 #2
Your requirements make no sense. If you can't send it to the browser, how
would you expect the viewer to see it.

The easiest option is to stick it in an iframe - but they can still chose to
set their browser to prompt for all files if thats what they want to have
happen.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Rick" <rf*****@newsgroups.nospamwrote in message
news:O%****************@TK2MSFTNGP03.phx.gbl...
Does anyone know of an ASP.net control that will allow viewing a pdf file?
Without streaming the file to the browser. I have to display a pdf without
the pdf being stored on the web server and also not have the user prompted
for a download.

Thanks in advance,
Rick

May 30 '07 #3
I was hoping to get a control that would sit on a web page and be able to
stream the pdf into the control. I know it has to display in a browser, but
streaming directly to the browser forces the download prompt.And I'm not
given the option from people higher up to make changes or force users to
make the changes on the client side.

"Rick" <rf*****@newsgroups.nospamwrote in message
news:O%****************@TK2MSFTNGP03.phx.gbl...
Does anyone know of an ASP.net control that will allow viewing a pdf file?
Without streaming the file to the browser. I have to display a pdf without
the pdf being stored on the web server and also not have the user prompted
for a download.

Thanks in advance,
Rick

May 30 '07 #4
If you download and install the adobe acrobat pdf viewer, you won't be
prompted whether to save or download a pdf file that was obtained by
clicking a link on the browser - the file will download and
automatically open in acrobat (this also holds true if the link was
initiated via javascript).

If you do have acrobat installed, but are still getting the download
prompt, then the .pdf file extension probably isn't associated with
acrobat on the windows OS you are using. Re-installing acrobat should
fix this.

You can also stream files using XMLHTTP, however, this will also
require you to weaken security settings on your browser that would
enable ADODB.scritping and the scripting.filesystemobject active X
controls, opening you to internet attacks.

I don't think there is a native ASP.NET control that ships with visual
studio that allows you to view pdf files.

May 30 '07 #5
Hi Rick,

For viewing PDF document in web page, it totally depend on the PDF viewer
installed on client machine. So it is necessary to insure that the client
has installed the PDF viewer software(unless you're using activex control
for pdf viewing so that client need to download and install your activex
component). Also, for whether client will prompt for open dialog, it depend
on your client machine's explorer setting. You can configure it through the
following steps:

1. open windows explorer

2. Tools ---folder options---File Types

3. choose the "PDF" extension and in the "Advanced" setting, you can find
the "confirm open after download" checkbox option.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.




May 31 '07 #6
Rick wrote:
I was hoping to get a control that would sit on a web page and be able to
stream the pdf into the control. I know it has to display in a browser, but
streaming directly to the browser forces the download prompt.And I'm not
given the option from people higher up to make changes or force users to
make the changes on the client side.
If your problem is that you don't want the user to wait for the entire
file to download, then I have good news for you. The Adobe Reader
browser plugin has a feature that allows you to stream the PDF page by
page on demand. The users would only have to wait for the first page to
load, and they could start navigating right away. This requires that you
first optimize your PDF for the web, also known as linearization. Go to
pdfzone.com and see if you can find a command line tool that converts an
existing PDF file into a byte-servable linearized one. If you host that,
Adobe Reader will fetch it page by page as the user is scrolling. Once
again, this won't work unless you get a tool that linearizes the PDF
first, or save it that way from Acrobat.

Tom
Jun 1 '07 #7

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

Similar topics

4
by: Salad | last post by:
Hi: I have the following line: DoCmd.SendObject acSendReport, "TestReport", _ "SnapshotFormat (*.snp)", _ "joeblow@nowhere.com", , , "Report Test", _ "Does it open correctly?", True I have...
1
by: Graig | last post by:
Is there a way to use teh Crystal report 9 Activex Viewer on an ASP.NET web page? When I added the control to the page - I do not get all of the properties of the Viewer control (instead just the...
3
by: Chris Botha | last post by:
I have a Report Viewer control on a Web page. I want the control to size automatically as the Web page sizes, so I've set the control's width property to 90% and the height property to 90% as well....
0
by: Paul Russo | last post by:
I am using the Report Viewer Web Control in Asp.Net 2.0. We are utilizing SQL Server Session state. We would like to use cookieless session state, however, the report viewer controls display an...
2
by: Jayender | last post by:
Hello , I need to add a ActiveX control ...the Dicomviewer in ASP>net .. I am able to do it fine in C# project but not in web application I add that Dicom dll (.ocx file) in my ASP.Net form I...
1
by: zee | last post by:
hello Is it possible to use Document Image Viewer Control in ASP.NET(2.0) because 1. The IDE is not adding this component in the toolbox and 2. when i use it so it give me following error ...
1
by: steve | last post by:
Hi All Can anybody point me to some info on creating a graph in VB.net 2005 report viewer I can't seem to find any on the web I want to show sales totals by week in a vertical bar graph ...
2
by: Fred G. Sanford | last post by:
I am using Visual Web Developer Express with the downloadable Report Viewer Redistributable Control installed. On the Report Viewer control, the Export dropdown contains PDF and Excel. Is...
0
by: PromisedOyster | last post by:
Our C# application has a need for a file viewer control. ie to show files of various types such as .DOC. DOCX, TXT, MSG, XLS, XLSX, PDF,RTF etc. We wrote our own one based on Internet explorer...
2
by: sphinney | last post by:
Hi everyone. I have a form in my Access 2007 database with a Microsoft Office Document Imaging Viewer Control 12.0 object on it. The object is named "GRAPHIC_mdv". When the form opens I want to...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.