XLSX

What does the “s” attribute signify in a cell tag in XLSX

拟墨画扇 提交于 2019-11-30 18:16:30
In the XML of a worksheet in an XLSX file (Excel 2007) cell tags that have a "t" attribute equal to "s" are string types. The value tag inside the c needs to be looked up and converted via the sharedStrings document. But, some cells have s="237" and no t attribute at all. The value tag has an integer like 39448 which does not relate to the sharedStrings document. The value as it appears in Excel is a date 1/1/2008. What does the s attribute signify in a c tag in XLSX? Unknown value <c r="B47" s="237"> <v>39448</v> </c> Shared String value <c r="C47" t="s"> <v>7</v> </c> The s attribute refers

Element-ui组件库Table表格导出Excel表格

瘦欲@ 提交于 2019-11-30 17:34:37
点击“点击导出”按钮后下载sheetjs.xlsx文件(导出文件) Element组件库中的el-table表格导出需要的主要是两个依赖:(xlsx 和 file-saver) npm install --save xlsx file-saver <template> <div class="table"> <!--给表格添加一个id,导出文件事件需要使用--> <el-table :data="tableData" border style="width: 100%" id="out-table" > <el-table-column prop="date" label="日期" width="180" > </el-table-column> <el-table-column prop="name" label="姓名" width="180" > </el-table-column> <el-table-column prop="address" label="地址" > </el-table-column> </el-table> <!--给按钮绑定事件--> <button @click="exportExcel">点击导出</button> </div> </template> <script> // 引入导出Excel表格依赖 import FileSaver

Unreadable content in Excel file generated with EPPlus

隐身守侯 提交于 2019-11-30 17:27:23
I'm having a little problem when I generate an Excel file from a template, using the EPPlus library. The file has a first spreadsheet that contains data that is used for populating pivot tables in the following sheets. When I open the generated file, I get the following error message : "Excel found unreadable content in 'sampleFromTemplate.xlsx'. Do you want to recover the contents of this workbook ? I you trust the source of this workbook, click Yes." I obviously click yes, then get a summary of repairs done to the file, and a link to an xml formatted log file containing this : <?xml version=

Python - Converting XLSX to PDF

ぃ、小莉子 提交于 2019-11-30 17:22:21
问题 I have always used win32com module in my development server to easily convert from xlsx to pdf : o = win32com.client.Dispatch("Excel.Application") o.Visible = False o.DisplayAlerts = False wb = o.Workbooks.Open("test.xlsx"))) wb.WorkSheets("sheet1").Select() wb.ActiveSheet.ExportAsFixedFormat(0, "test.pdf") o.Quit() However, I have deployed my Django app in production server where I don't have Excel application installed and it raises the following error: File "C:\virtualenvs\structuraldb\lib

xlsx compressed by rubyzip not readable by Excel

给你一囗甜甜゛ 提交于 2019-11-30 16:38:30
I am working on writing code which can read/write Excel xlsx files. xlsx files are simply zip archives of several xml files, so in order to test out if I could write a file, I used a gem called rubyzip to unzip the xlsx file and then immediately zip it back up to a new archive, without modifying the data. When I do this, however, I cannot open the new excel file, it is said to be corrupted. Alternatively, if I use Mac OS X's Archive Utility (the native application to handle zip files), and I unzip and re-zip an excel file, the data is not corrupted and I can open the resultant file in Excel. I

Apache POI - Working with XSSFWorkbok + servlet response

谁都会走 提交于 2019-11-30 15:50:13
问题 I'm having problems in my java application to enable downloading XLSX files. following the example displayed in this link: Create an excel file for users to download using Apache POI, I tried two configurations to download/save a spreadsheet. First with a .XLS file: response.setContentType("application/ms-excel"); response.setHeader("Content-Disposition", "attachment; filename=testxls.xls"); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(); HSSFRow row = sheet

java实现赋值Excel模板并写入后导出

ⅰ亾dé卋堺 提交于 2019-11-30 14:43:07
package com.at21.gpd.action; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URLEncoder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletResponse; import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel

怎样在PDF Transformer+中设置XLSX和PPTX 转换

雨燕双飞 提交于 2019-11-30 14:42:30
作为可创建、编辑及将PDF文件转换为其他可编辑格式的通用工具,ABBYY PDF Transformer+为受支持的输出格式提供多种转换设置,选定的转换设置影响生成文档的外观,本文具体为大家讲解ABBYY PDF Transformer+中的XLSX和PPTX 转换设置。 XLSX转换设置 选择文件 > 转换为,然后点击XLSX对话框中的转换设置选项卡,或者在工具栏上点击转换为 > 转换设置…。 以下设置可用: 文本设置 1、忽略表格外文本 只保存表格,忽略剩余文本。 2、将数字值转换为编号 将数字转换为 XLSX 文档中的“编号”格式。Microsoft Excel可对该等单元格执行算术运算。 3、保留页眉和页脚 在输出文档中保留栏外标题(也称为页眉和页脚)。 PPTX转换设置 选择文件 > 转换为,然后点击PPTX对话框中的转换设置选项卡,或者在工具栏上点击转换为 > 转换设置…。 以下设置可用: 文本设置 1、保留分行符 保留原始行排列。否则,所有转换的文本将写入一行。 2、文字换行 将转换后的文本融入幻灯片文本框中。 3、保留页眉和页脚 在输出文档中保留栏外标题(也称为页眉和页脚)。 图片设置 如果文本包含的图片较多,生成的文件将相当大,可使用图片设置下拉列表中的选项调整图片质量和所生成文件的大小。 注:如果不想保留任何图片,请清除保留图片(E)选项。 更多关于ABBYY

How to extract plain text from a DOCX file using the new OOXML support in Apache POI 3.5?

帅比萌擦擦* 提交于 2019-11-30 11:39:01
On September 28, 2009 the Apache POI project released version 3.5 which officially supports the OOXML formats introduced in Office 2007, like DOCX and XLSX. Please provide a code sample for extracting a DOCX file's content in plain text, ignoring any styles or formatting. I am asking this because I have been unable to find any Apache POI examples covering the new OOXML support. This worked for me. Make sure you add the required jars (upgrade xmlbeans, etc.) public String extractText(InputStream in) throws Exception { XWPFDocument doc = new XWPFDocument(in); XWPFWordExtractor ex = new

使用VBA实现xls批量转xlsx

南楼画角 提交于 2019-11-30 10:45:11
我用Office 2019编辑过的一批xls文件,在Office 2010下无法打开,但另存为xlsx后可以,所以需要将xls批量转换为xlsx。 此时,我的逗比同事要去抖音给我搜教程…… 在不借助第三方工具的情况下,使用Excel内置的VBA即可实现功能。 首先,打开VBA编辑器: 菜单栏开发工具→Visual Basic 若菜单栏没有开发工具,则在菜单栏下方的功能区右键,选择「自定义功能区」,弹出新窗口中,在右侧勾选「开发工具」即可。 快捷键:Alt + F11 然后,在VBA编辑器中粘贴以下代码: '***********访问当前文件夹下所有子文件夹及文件, Dim iFile(1 To 100000) As String Dim count As Integer Sub xls2xlsx() iPath = ThisWorkbook.Path On Error Resume Next count = 0 zdir iPath For i = 1 To count If iFile(i) Like "*.xls" And iFile(i) <> ThisWorkbook.FullName Then MyFile = iFile(i) FilePath = Replace(MyFile, ".xls", ".xlsx") If Dir(FilePath, 16) = Empty