mrossen Active Member Licensed User Longtime User Sep 5, 2015 #1 When I try to do this : Code: Copy Log(sPath) Log(File.Exists(File.DirDocuments & pdfDir, sPath)) WebViewLeaflet.LoadUrl("file://" & File.Combine(File.DirDocuments & pdfDir, sPath)) NavControl.ShowPage(leaflet) I can get the the path to the file and file.exits return true, but I get this error *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] Anyone knows what that Means? Mogens
When I try to do this : Code: Copy Log(sPath) Log(File.Exists(File.DirDocuments & pdfDir, sPath)) WebViewLeaflet.LoadUrl("file://" & File.Combine(File.DirDocuments & pdfDir, sPath)) NavControl.ShowPage(leaflet) I can get the the path to the file and file.exits return true, but I get this error *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] Anyone knows what that Means? Mogens
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2015 #2 Can you post the full error message from the logs? Try to load the url after you show the page. Upvote 0
mrossen Active Member Licensed User Longtime User Sep 6, 2015 #3 Solved: I replaced the Spaces in the filename to _ Then it Works Mogens Upvote 0