Page 1 of 1

revBrowser and Browser Control questions

Posted: Thu May 02, 2013 7:57 pm
by daryl
Hi Folks,

I am writing an application that downloads documents from the web (pdf, images, etc.) and then displays them to the user.
On reading through the documentation it seems that the revBrowser interface might be the best way to go for this purpose,
but I have a few questions:

1. Can an Image Area be used to display different types of documents, i.e. Text, PDF, PNG, GIF, etc. and if so, does one need to somehow set the mime type?
2. Is there a common interface that will work with both desktops and mobile devices to display these types of documents? This application needs to work across multiple platforms.

Any help would be greatly appreciated.

Thanks,

Daryl

Re: revBrowser and Browser Control questions

Posted: Thu May 02, 2013 8:08 pm
by BvG
Image objects show various types of images. The possibilities are listed in the image object entry of the dictionary. To show text, one needs to use a field object, which can accept a subtype of html and a subtype of rtf.

There's several ways to get external images to show up on your stack. As you talked about urls, I suggest to set the fileName of the image to an url:

Code: Select all

set the fileName of image 1 to "http://this.url.does.exist.somewhere.on.the.internet.arealserver.com/and/theres/an/image.png"
If you want several images and/or several texts, then the best way is of course to have several fields and image objects on one card. You can group them, set their relative locations and width/height so they align properly.