我有创建docx或odt文件的功能。在创建完成后,我需要自动在Microsoft/libre办公室打开此文件。如何在flex/as3中对此进行编码?FLEX/AS3如何打开docx/odt文件
protected function create003(docType:String, patientID:String):void
{
create003Result.token = nhealthReports.create003(docType, patientID);
}
protected function getFormModuleDataResult_resultHandler(event:ResultEvent):void
{
var pathToFile:String;
pathToFile=create003Result.lastResult; // this is path to created file
// here i need some code from you
}
<nhealthreports:NhealthReports id="nhealthReports"
showBusyCursor="true"/>
<s:CallResponder id="create003Result" result="getFormModuleDataResult_resultHandler(event)"/>
所以这个文件是在服务器上创建的,对吧?这是您正在处理的AIR桌面应用程序吗? – Philarmon
是在php服务器上创建的文件,并发送文件的字符串名称。是的,我使用AIR,而不是浏览器 – Alex
使用** NativeProcess **来运行外部程序(MS Office等)。 –