i find the example here: https://www.b4x.com/android/forum/threads/open-local-files-with-external-apps.51941/#content
my code is here:
Sub Process_Globals
Private m_PageReport As Page
Public g_DI As DocumentInteraction
End Sub
Private Sub Application_Start (Nav As NavigationController)
m_PageReport.Initialize("PageReport")
m_PageReport.Title = "首页"
m_PageReport.RootPanel.Color = g_colorBack
NavControl.ShowPage(m_PageReport)
g_DI.Initialize("di",File.DirDocuments,"111.doc")
g_DI.UTI="com.microsoft.word.doc"
End Sub
Sub PageReport_Click
If g_DI.OpenFile(m_PageReport.RootPanel)=False Then
Log("openwordfileerror")
End If
End Sub
i install my app and word app on my ipad mini and
then i run the app, the 111.doc can not open and the openfile function return true
the screen show the blank page ,and no error happened
why?
can somebody help me? thanks
my code is here:
Sub Process_Globals
Private m_PageReport As Page
Public g_DI As DocumentInteraction
End Sub
Private Sub Application_Start (Nav As NavigationController)
m_PageReport.Initialize("PageReport")
m_PageReport.Title = "首页"
m_PageReport.RootPanel.Color = g_colorBack
NavControl.ShowPage(m_PageReport)
g_DI.Initialize("di",File.DirDocuments,"111.doc")
g_DI.UTI="com.microsoft.word.doc"
End Sub
Sub PageReport_Click
If g_DI.OpenFile(m_PageReport.RootPanel)=False Then
Log("openwordfileerror")
End If
End Sub
i install my app and word app on my ipad mini and
then i run the app, the 111.doc can not open and the openfile function return true
the screen show the blank page ,and no error happened
why?
can somebody help me? thanks
Last edited: