Knowledgebase
Knowledgebase
How to display the PDF files on the client mobile device ?
Posted by Agathe Lesgourgues on 09 September 2014 04:18 PM

There are two methods to display the PDF files on the client mobile device.

 Method 1: Put the PDF files to the web server and then display it with the following codes:

inet l_inet

l_inet = create inet

l_inet. HyperLinkToURL("http://192.168.168.18/files/test.pdf")

 

Method 2: Use the Webview objects which are provided in the Appeon 2015 version to display the PDF files locally. Here is the related help documentation and codes for your reference:

http://www.appeon.com/support/documents/appeon_online_help/2015/workarounds_and_api_guide/ch01s04s13.html#d0e17187 

int  li_ret

string ls_filepath

 

ls_filepath = appeongetcachedir()+"/plugin/test.pdf"

li_ret = uo_webview.of_loadlocalfile (ls_filepath)

if li_ret > -1 then

 messagebox("note:", "success of_loadlocalfile:FilePath:" +ls_filepath + ", return value:" +  string(li_ret))

else

messagebox("note:", "failed of_loadlocalfile:FilePath:" +ls_filepath + ", return value:" +  string(li_ret))

end if

 

(0 vote(s))
Helpful
Not helpful

Comments (0)
Help Desk by Novalys