English 中文(简体)
在FLEX AIR中阅读CSV/xlsx文档
原标题:Reading CSV/xlsx file in FLEX AIR
  • 时间:2010-08-06 22:18:02
  •  标签:
  • air
  • flex4

iii

我要求将CSV/Xlsx文档列入我的FLEX AIR。

var strFilePath :String = File.applicationDirectory.nativePath + "Test.xlsx"; var recurFile :File = new File(strFilePath);
var stream :FileStream = new FileStream(); stream.open(recurFile, FileMode.READ); var content :String = String(stream.readUTFBytes(stream.bytesAvailable)); But variable content always has "PK.." .. is some hexadecimal character.

我试图使用URLLoader,但结果仍然相同。

请更正成Xlsx/csv文档。

问题回答

您不妨检查以下图书馆:

http://code.google.com/p/as3xls/"rel=“nofollow noreferer”>http://code.google.com/p/as3xls/

CSV文档更容易处理,如果谷歌在AIR中读CSV文档,就有一些很好的研究。





相关问题
Can an AIR application access its own digital signature?

All AIR installation files must be digitally signed (http://help.adobe.com/...). Is there a way for an AIR application to access this signature information at runtime? Say, I m distributing client-...

What are the best development tools to use in this project?

I am currently devising 3 database desktop applications for different users in a manufacturing company (one for the accounting department, sales department, production department). All applications ...

Authenticating and tracking users in a JSON webservice

I have contact management / CRM application used in-house by our company, It is a web based app and thus uses a lot of Ajax. Most of the data is JSON, and the backend server uses PHP with MySQL as the ...

Adobe AIR: detect en_GB locale

Is there a way to detect if the user is running the AIR application under en_GB locale on Windows? Capabilities.language returns only "en" and Capabilities.languages[0] returns "en_US" :(

AIR评估业绩缓慢的原因?

我试图用Windows XP(SP3)Adobe AIR的表现来缓解一个奇怪的问题。 我们从遥远的服务器到当地QLQ数据库的同yn数据,以及某些机器的数据,这一过程需要......。

xmlHttpRequest and returned url

With help of xmlHttpRequest I make a server query. After that the server is redirecting to another page (e.g. "http://site.com/index.html;var=123") The question is - how can I get full url(side.com/...

热门标签