oXygen 17.1 OpenInSystemAppOperation resourcePath question

Oxygen general issues.
cedporter
Posts: 18
Joined: Thu Mar 16, 2017 8:44 pm

oXygen 17.1 OpenInSystemAppOperation resourcePath question

Post by cedporter »

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: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: oXygen 17.1 OpenInSystemAppOperation resourcePath question

Post by Radu »

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: 18
Joined: Thu Mar 16, 2017 8:44 pm

Re: oXygen 17.1 OpenInSystemAppOperation resourcePath question

Post by cedporter »

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