Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

App crash when opening local document.

CocottierCocottier
edited November 2016 in Questions And Answers

Hello fellow Hololens users/developers,

I have encountered a problem and I hoped one of you might be able to help me ...

Context:

I'm working on an app from which we would like to read PDFs.
I have a pdf file which is saved localy.

Problem:

When calling:
Application.OpenURL(Application.persistentDataPath + "/test.pdf");
The app just crash. So I checked if the file existed using
System.IO.File.Exists(Application.persistentDataPath + "/test.pdf")
And it does exist!

What is strange:

There is no problem when I run it in the UnityEngine/Windows/Android/iOS so I assume there is something special with Hololens I fail to catch.

Thanks in advance for your time and concern. I'm starting to go all out of idea about it ...

Answers

  • Options

    I have the same problem and I just could not resolve it. I can load PDF from an url, I am not sure it is possible to read a PDF from a local path on the Hololens. But you can load it from OneDrive for instance, if it can help you.

  • Options

    I aint really familiar with OneDrive but I would like not to use Microsoft's cloud service (or any other cloud service), so sadly that does not solve my problem :(

  • Options

    I don't know what you want to do, if you want to load a specific PDF or multiple PDF. I can read a PDF I pass in my script as a public variable, or via an URL (not OneDrive specific). I would like to load local files but I spent hours without success, so sorry I can't help you more...

  • Options

    I believe you need to be using the UWP versions of your API calls to open the file(s). https://msdn.microsoft.com/windows/uwp/app-settings/store-and-retrieve-app-data

Sign In or Register to comment.