Hi,
My requirement is to read excel file data. The file will be uploaded in Adobe form. The code i have written to open browse window and to read file data is as below.
var sFile;
event.target.importDataObject(sFile);
var oFile;
oFile = event.target.getDataObject(sFile);
this.parent.parent.Mass_sub.ZPATH1.rawValue = oFile.path;
// access the FileStream
var pFile = event.target.getDataObjectContents(sFile);
var cFile = util.stringFromStream(pFile, "utf-8");
this.parent.parent.Mass_sub.ZCONTENT.rawValue = cFile;
But this code is working fine only for text files. How can i read excel file data?
Please help.
You would have to make something non-binary, which would mean tab-delimited or CSV, or if you want to be fancy, XML. These formats can be read.
It might be possible to also interpret the very newest formats, if you can get the XML form in the clear.
Hope this can help.
Max Wyss.