Skip to main content
yorkprof
Participant
April 6, 2017
Question

"Cannot Not Open Document" when previewing cp9

  • April 6, 2017
  • 1 reply
  • 302 views

When I try Open URL or File and select a .pdf, I get this error message on trying to preview:

"Cannot not open document'      

 

 

 

 

 

I've seen threads addressing similar issues with previous versions and with 9, but the following have not worked:

  • I have selected the file from within my project, which defaults to using a relative path
  • I've also put the file in the same place as the published project (at the root publish folder, and within the actual published project)
  • In conjunction with the last step, I removed the relative path so that my project referenced just the file name
  • In case it had to do with Flash Global Security settings, I followed the steps in the settings manager to trust the folder location (root and specific)

I can publish successfully, but when it asks if I want to open and I click Yes, I get the error. When I remove this Open URL or File action on the button, publishing and previewing this slide is successful.  

    This topic has been closed for replies.

    1 reply

    RodWard
    Community Expert
    Community Expert
    April 7, 2017

    Have you tried uploading the published content to a web server and testing it from there?

    yorkprof
    yorkprofAuthor
    Participant
    April 7, 2017

    Thanks! I created two new test projects--one blank and one responsive, and for each I just added a single button that opens a PDF. In the blank project, I can preview successfully. In the responsive project, I get the error message when I try to preview. In both projects, if I publish to devices and try to open the project, I get the error message. However, per your question, both projects work successfully if I publish and upload to Canvas.

    Unfortunately, this means that as soon as I add any Open URL or File button actions linked to a file, I can no longer preview my responsive project. Do you think this is just a bug or is there something else I might be doing incorrectly?

    RodWard
    Community Expert
    Community Expert
    April 7, 2017

    It's not a bug.  It's just that you need to get used to the fact that if you are going to play with HTML5 then you need to do all your testing from a web server environment.

    So either upload to a webserver or LMS to test, or set up a LOCALHOST web server (e.g. WAMPP or XAMPP) on your development box and use that for your testing. 

    If all of this webserver stuff is new to you, then Google for more info about how to set one up.