xls

XSLT: element that has no attributes and no children transform to parent attribute

霸气de小男生 提交于 2019-12-11 00:27:51
问题 The structure, names, values of the given .xml files is unknown. For every not-root element that has simple structure(has no child-nodes, has no attributes, BUT has text and is not empty) transform it into parent's attribute. I have .xml file: <list> <worker> <name atr="ss">val1</name> </worker> <worker> <make1>val2</make1> </worker> <worker> <name> <make2>val3</make2> </name> </worker> <worker> <name> <doo atr="ss1">val4</doo> <make3></make3> </name> </worker> </list> And I want to get this:

Export data to XLS (not via CSV) on iOS

夙愿已清 提交于 2019-12-10 22:09:10
问题 I need to export some data to an .XLS file, pdf, and print. I already tried the simple solution: exporting it to .CSV with CHCSVWriter. It works for printing and saving it to pdf (I open the CSV in a UIWebView and get the PDF or print from there). However, to use the CSV to be open in excel has two main problems: 1 - First, as the name says, in the CSV the values are separated by commas, and in some versions of Excel, it requires the user to separate 'manually' in cells. 2 - I have hebrew

Read data from doc, xls files with PHP

这一生的挚爱 提交于 2019-12-10 20:34:42
问题 I wonder is it possible to read data from doc and xls files and put the readed content into image files(create page samples of the document). For example I have documents that I want my customers to buy. So I need automatically to create little images like samples of mine documents. Your help would be appreciated. 回答1: For reading from xls files I can really recommend PHPExcel whic is a really simple, but powerful tool:) As for doc I unfortunatly got no good recommandation for you. But I'm

generating xls file using axlsx

元气小坏坏 提交于 2019-12-10 18:27:25
问题 is there a way to generate XLS file using 'axlsx' gem? I'm already using this gem to generate xlsx files, and don't want to move it all to a different gem, especially since axlsx is much easier to work with. 回答1: Axlsx only generates xlsx files (it does not read them.) You'll have to use spreadsheet or roo or something else to directly create them. I rely on the downloadable Microsoft converter to change from xlsx to xls . I only generate one file, and as long as the xlsx file is not too

Read integer from numeric cell using Apache POI in java

ぃ、小莉子 提交于 2019-12-10 17:13:09
问题 I have an application which reads xls sheet using apache poi. When the cell has numeric value, i read it by row.getCell(i).getNumericValue(). But it returns floating point digit. like if the cell value is 1, it returns 1.0. Can i convert it to int ? Any helpwould be appreciated. I tried Integer.parseInt(value)- but it throws NumberFormat exception.Any help is appreciated.Here is the pseudo code: FileInputStream file = new FileInputStream(new File("C:\\test.xls")); HSSFWorkbook workbook = new

Plone full text indexing Excel files

China☆狼群 提交于 2019-12-10 15:46:14
问题 how can I customize Plone search engine in order to actvate full text indexing of excel files? I have already installed pdftotext and wv for pdf, word files full text indexing. 回答1: If you add Products.OpenXml to your instance eggs and install it in Plone you can index modern Office formats, at least .docx and .xlsx. For plain old Excel (.xls) files this does not work. I tried it in a Plone 4.3.2 buildout config a few weeks ago: [instance] eggs = ... Products.OpenXml [versions] # You need a

Class "XSLTProcessor' not found [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-12-10 13:56:58
问题 This question already has answers here : Fatal error: Class 'XSLTProcessor' not found (2 answers) Closed 5 years ago . I'm trying to transform a XML file to a HTML output with XSLT.. My code is as following: <?php $xml = new DOMDocument; $xml->load('file.xml'); $xsl = new DOMDocument; $xsl->load('file.xsl'); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); echo $proc->transformToXML($xml); ?> But I'm getting the error: Fatal error: Class 'XSLTProcessor' not found I know this has

Excel biff5 to biff8 conversion

99封情书 提交于 2019-12-10 13:45:38
问题 My system uses Apache-POI to manage some xls files. Now I've got almost 300 xls files, but it appears that they are in an old format so i got this exception: The supplied spreadsheet seems to be Excel 5.0/7.0 (BIFF5) format. POI only supports BIFF8 format (from Excel versions 97/2000/XP/2003) Is there a way to handle that or to automatically convert all those files to a biff8 format? 回答1: Go with converting it to OOXLS format, POI supports both BIFF8 and newer OOXLS. Download official

xls cascading lookup based on pivot table style datasource?

怎甘沉沦 提交于 2019-12-10 11:57:03
问题 Assuming dataset looks like Country Region Product UK North fdhlw46 UK North fdhlw47 UK North fdhlw48 UK North fdhlw49 UK North fdhlw50 UK South fdhlw51 UK South fdhlw52 UK South fdhlw53 UK South fdhlw54 UK South fdhlw55 UK South fdhlw56 UK South fdhlw57 UK West fdhlw58 UK West fdhlw59 UK West fdhlw60 UK London fdhlw61 UK London fdhlw62 USA New York fdhlw63 USA New York fdhlw64 USA New York fdhlw65 USA New York fdhlw66 USA Chicago fdhlw67 USA Chicago fdhlw68 USA Chicago fdhlw69 USA Chicago

mySQL to XLS using PHP?

那年仲夏 提交于 2019-12-10 11:32:50
问题 how can I create a .XLS document from a mySQL table using PHP? I have tried just about everything, with no success. Basically, I need to take form data, and input it into a database, which I have done, and then I need to retrieve that table data and parse it into a microsoft excel file, which needs to be saved automatically onto the web server. <?php // DB TABLE Exporter // // How to use: // // Place this file in a safe place, edit the info just below here // browse to the file, enjoy! //