close

每個 APP 都會有自己的路徑,所有在程式中下載的檔案都會儲存在該路徑的 plugin 文件夾中,你可以用 AppeonGetCacheDir() 取得它的路徑。

想在畫面中打開檔案的話,要先在畫面上加入個叫 uo_webview 的控件,然後把檔案這樣交給它就可以了:uo_webview.of_loadlocalfile(ls_path),但 Android 上不支援以 webview 打開 pdf,Android 上看 pdf 要交給瀏覽器
ls_full_path = 'file://' + ls_full_path
GetContextService("Internet", iinet_base)
li_rtn = iinet_base.HyperlinkToURL(ls_full_path)

但在華為上這三句沒效,不要問我為什麼,但可以試一下這樣:
Run(ls_full_path)

 

arrow
arrow
    創作者介紹
    創作者 過時程式員 的頭像
    過時程式員

    過時程式員的部落格

    過時程式員 發表在 痞客邦 留言(0) 人氣()