Welcome Guest Search | Active Topics | Members | Log In | Register

How to Display PDF Files? Options
KamleshBelote
Posted: Wednesday, November 24, 2010 6:10:43 AM
Rank: Member

Joined: 11/24/2010
Posts: 6
Points: 18
Location: Pune

Hi,
I have created Application , which contain

EntreeListItemDetailHyperlink TheItem = TheGroup.AddListItem<EntreeListItemDetailHyperlink>();
TheItem.Name = "Name";
TheItem.Href = "http://Localhost/MyFiles/File1.pdf";
TheItem.Text = "The Link";

but it was not opening, only blank screen appeared

Thanx in Advance
joe
Posted: Wednesday, November 24, 2010 8:29:30 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
How are you testing this? Safari from the server?

Only the server will be able to resolve the URL you have specified, "http://Localhost/MyFiles/File1.pdf".

Also, try going directly to the file URL in your browser to see if you can actually open it.

-joe
KamleshBelote
Posted: Wednesday, November 24, 2010 10:34:45 AM
Rank: Member

Joined: 11/24/2010
Posts: 6
Points: 18
Location: Pune
joe wrote:
How are you testing this? Safari from the server?

Only the server will be able to resolve the URL you have specified, "http://Localhost/MyFiles/File1.pdf".

Also, try going directly to the file URL in your browser to see if you can actually open it.

-joe


Hey thanx for reply ,
Actully I am tring the access the file from IPHONE Stimulator.
file is accessible through the URLs.
joe
Posted: Wednesday, November 24, 2010 10:41:58 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
Do you mean you are using Safari, with the iPhone User Agent selected from the Developer menu?

When you click on the link from your application, what is the URL displayed in your browser where you get the blank page?
KamleshBelote
Posted: Wednesday, November 24, 2010 10:47:37 AM
Rank: Member

Joined: 11/24/2010
Posts: 6
Points: 18
Location: Pune
In safari it work correctly, but i am using Stimulator of iPhone.
joe
Posted: Wednesday, November 24, 2010 10:52:48 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
The issue is most likely one in the simulator software you are using then, it probably does not support rending PDF documents. When a link to a document is presented in Mobile Entree, once the user clicks on the link, the user is no longer within the context of Mobile Entree and the rendering of the document is the resposiblity of the device/browser. Does this make sense?
KamleshBelote
Posted: Wednesday, November 24, 2010 10:56:14 AM
Rank: Member

Joined: 11/24/2010
Posts: 6
Points: 18
Location: Pune
Ok , So which stimulator you recommend for testing purposes ?
Actully we are string to render PDF file from .aspx page.
joe
Posted: Wednesday, November 24, 2010 11:03:00 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
iPhone does not have a real emulator that I know of. The Windows Phone 7 emulator is pretty good, but PDF files are not supported without an app that can render them and you can't install the app on the emulator.

Unfortunately, your best way to test this particular scenario is on an actual device. Safari is great for testing normal applciation functionality, but it will handle documents differently than the actual phone will. On an iPhone, your link would open up a second browser window with the PDF file displayed whereas the Safari browser might prompt you to download it or it may display it in the current window.
KamleshBelote
Posted: Wednesday, November 24, 2010 11:08:19 AM
Rank: Member

Joined: 11/24/2010
Posts: 6
Points: 18
Location: Pune
Thanx for your help.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.