473,569 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open a PDF file inside browser?

I have a asp web page with a link point to a file which depend on the
database information.

Sometime is a picture file sometime a word and some time is a PDF file.
For picture file, when user click the link, it will open the picture inside
the IE browser.

Now here is my problem:

On some of the computers, for PDF file only, it opens outside of the IE
browser. Like the Acrobat program is not in the browser. With the same code,
some computer works good.

But I want to force it open inside the browser.

Does anyone knows why and how to fix it?

Thanks in advance.

Lin


Jul 19 '05 #1
2 4383
"Lin Ma" <a@a.com> wrote in message
news:eU******** ******@TK2MSFTN GP09.phx.gbl...
I have a asp web page with a link point to a file which depend on the
database information.

Sometime is a picture file sometime a word and some time is a PDF file.
For picture file, when user click the link, it will open the picture inside the IE browser.

Now here is my problem:

On some of the computers, for PDF file only, it opens outside of the IE
browser. Like the Acrobat program is not in the browser. With the same code, some computer works good.

But I want to force it open inside the browser.


It's a client/browser issue. Not sure why that's happening.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2
"Lin Ma" <a@a.com> wrote in message
news:eU******** ******@TK2MSFTN GP09.phx.gbl...
But I want to force it open inside the browser.

This is a setting in Acrobat Reader (at least it is in version 6.0). Don't
try to force it. It can't be done.

Does anyone knows why and how to fix it?


There's nothing to fix. This is by design. The end user can decide to open
it in the browser by going to Edit > Preferences > Internet in Acrobat
Reader, and selecting "Display PDF in browser".

Regards,
Peter Foti
Jul 19 '05 #3

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

Similar topics

18
8820
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page (same folder). The cookie is not received. Can someone explain why? I worked around this by adding a cache-control header with a value of...
2
10101
by: ajay | last post by:
Sorry for asking a simple and easily find-able Q. How to open a document link with it's application? Say i have link for .ppt file and i want to open it with MS Power point. By default it opens inside IE (the setting of IE does this). Is it possible to do it or the setting of browser will overwrite the HTML code? Tx
3
3701
by: VbUser25 | last post by:
hi.. i have a form i accept some user inputs in the form. there is a link on the form from where i open the excel file in the same browser (not in a new page...simply using a href. i am also accepting input from the user in the excel. now i want to save the data in excel as well as on asp form. i can save directly thru vba code in...
4
61087
by: Anand Ganesh | last post by:
Hi All, I want to open a .pdf file from my C# application and show to the user. I have acrobat reader in the client's computer. How to do this? Any suggestions please ? Thanks for your time.
6
1546
by: Tim Cowan | last post by:
Hi I have the following code to write an error file and it is supposed to open the HTML file in a browser when an error occurs. It creates the file Ok but doesn't open the new browser and doesn't give me any errors. Tim FileStream file = new FileStream(@"C:\errors\error.htm", System.IO.FileMode.OpenOrCreate); StreamWriter sw = new...
18
3311
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I...
2
2889
by: mike | last post by:
Hi, I have surfed through several posting about exporting gridview to excel and it works great. using the following code... response.Clear() response.ContentType = "application/vnd.ms-excel" response.Charset = "" Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite) Dim dg As New...
1
1588
by: pronerd | last post by:
Ok, I am looking for way to have a user download a file, and have it open the apprpreate client side application. For instance lets say a user is downloading an MS Word file. I want the user to get the dia log box asking them if they want to open, or save the file. If they click open I want the file to open in MS Word, but outside of the...
6
18211
by: mistral | last post by:
what is correct way open a PDF document in new window use hyperlink? I want show images thumbnails linked with PDF files, when click on thumbnail, PDF will be opened in new window. Some of PDF files are in the same web server, other are in a remote location. Any help will be appreciated.
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.