Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<ul> <li><p>Check to see if excel <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#exists" rel="nofollow">exists()</a> in the default location: </p> <blockquote> <p>C:\Program Files\Microsoft Office\Office<b>X</b> (<strong>X</strong> depends on office version)</p> </blockquote></li> <li><p>If you can't find it, display the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#browseForOpen%28%29" rel="nofollow">browseForOpen()</a> dialog or prompt user to install it.</p></li> <li><p>Lunch excel and open the XML file. (create a <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeProcess.html" rel="nofollow">NativeProcess</a> and pass the XML path as <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeProcessStartupInfo.html#arguments" rel="nofollow">argument</a>) <a href="http://office.microsoft.com/en-us/excel-help/command-line-switches-for-excel-HA010158030.aspx#BM4" rel="nofollow">command line switches for excel</a></p></li> </ul> <hr> <p><strong>UPDATE:</strong></p> <pre><code>var process:NativeProcess; var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); var excel:File = new File(); excel.nativePath = "path\to\excel"; if(excel.exists){ trace (excel.nativePath); } nativeProcessStartupInfo.executable = excel; var processArgs:Vector.&lt;String&gt; = new Vector.&lt;String&gt;(); processArgs[0] = "path\to\xml"; nativeProcessStartupInfo.arguments = processArgs; process = new NativeProcess(); process.start(nativeProcessStartupInfo); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload