Viewing PDF in Browser - Having Problems

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Viewing PDF in Browser - Having Problems

Post by johnmiller1950 » Tue Sep 17, 2013 12:22 pm

Good Morning,

I am writing a program for my employer to enable the storage and viewing of PDF files within my app using a browser window. If I store the PDF file of the local computer, everything works fine. However, when I switch things over so the PDF file is stored on the company's server , I get the following error message:
Screen Shot 2013-09-17 at 7.12.53 AM.png
Screen Shot 2013-09-17 at 7.12.53 AM.png (17.67 KiB) Viewed 4084 times
If I click the "Stay Offline" button, the PDF loads fine. However, if the user is trying to view a number of PDF's this gets very annoying. Does anybody have any idea why this is happening and how to fix it?

Thanks for your help.
John Miller

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Viewing PDF in Browser - Having Problems

Post by FourthWorld » Tue Sep 17, 2013 3:17 pm

The icon in the dialog indicates that the message is coming from Internet Explorer, not LiveCode. So to find the answer you'll need to search at MSDN or other Microsoft resources.

Doing a quick search at Google for "the web page you requsted cannot be viewed offline IE" yields a lot of results:
https://www.google.com/search?q=the+web ... offline+IE

This article from Microsoft may help:
http://support.microsoft.com/kb/290766
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Viewing PDF in Browser - Having Problems

Post by johnmiller1950 » Tue Sep 17, 2013 5:17 pm

I have solved my problem. This was my fault. I was having another problem (no response to any "revBrowser" handler) that I didn't mention because I thought they were unrelated.

I didn't update the "Externals" folder on the server at the same level as my app. This includes the "revBrowser.dll" file. Updating the "Externals" folder solved both my issues.

Thanks for everybody on this site who helps all of us become better programmers.

- John

Post Reply