oXygen 17.1 OpenInSystemAppOperation resourcePath question

<oXygen/> general issues.
cedporter
Posts: 10

oXygen 17.1 OpenInSystemAppOperation resourcePath question

Tue Sep 19, 2017 6:50 pm

I'm trying to launch a word doc using the OpenInSystemAppOperation action, and nothing's happening when i provide it the following resourcePath: 'P:/04 Divisions/Global Information Services/PUBS/12 Publications Forms/FCC Style Guide.docx'

I've tried escaping the spaces. I've tried appending 'file:///' to the beginning of the path. I've also tried using the UNC path. Is there any way to launch a docx file via custom action in 17.1?
Radu
Posts: 5088

Re: oXygen 17.1 OpenInSystemAppOperation resourcePath question

Wed Sep 20, 2017 8:53 am

Hi,

The resourcePath param should be an XPath expression so you should have simple quotes around the absolute URL-like path.
For example I tested with this exact value set in the resourcePath param:

Code: Select all

'file:/D:/projects/eXml/samples/ooxml/Conversion%20of%20units.docx'


and it worked for me, invoking the action opened MS Word. One more thing, as you see in the URL path I escaped characters like spaces using hex equivalents (%20 in this case).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
cedporter
Posts: 10

Re: oXygen 17.1 OpenInSystemAppOperation resourcePath question

Wed Sep 20, 2017 5:12 pm

That fixed it. I hoped it was just a question of syntax. Thanks!

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 0 guests