Tag: spreadsheet

在导出到Excel时,是否有任何事件可以通过VBScript用于SSRS报告?

我已经尝试了所有我能想到的和其他人的build议,正如这里所见的,当报告运行器将SSRS报告导出到Excel时指定表名。 到目前为止没有任何工作。 是否有一些事件可以用来写入代码(VBScript)? 可以使用VBScript分配或调整数据值,但是在SSRS中,是否有办法编写“OnGenerate”等事件的代码?

从一个范围复制样式到另一个范围?

我有一个excel文件,我用它作为模板,在需要时添加信息。 我有特殊的风格和合并,需要在几个单元格范围内完成,但是我现在正在做的方式(bruteforcing它)是非常缓慢的,当有大量的数据。 有没有办法我可以做得更好? for a in xrange(1, len(plans)): offset = 3 * a # Create blank templates for plans for x in xrange(5, 549): first_col_cell = recommended.cell(row=x, column=4) second_col_cell = recommended.cell(row=x, column=5) third_col_cell = recommended.cell(row=x, column=6) new_first_col_cell = recommended.cell(row=x, column=4 + offset) new_second_col_cell = recommended.cell(row=x, column=5 + offset) new_third_col_cell = recommended.cell(row=x, column=6 + offset) if […]

使用PerlparsingSpreadsheetML

使用PerlparsingSpreadsheetML格式文件的最佳方法是什么? 我试过Spreadsheet :: ParseExcel,但是它不能识别格式。 这是我尝试模块时得到的错误: No Excel data found in file 它看起来像CPAN没有一个模块,可以parsing它,据我所知。 什么是最简单的方法呢?

带有VBA支持的电子表格组件

我正在寻找一个.net电子表格组件,它也可以执行Excel文件中包含的VBA。 我发现Spreadsheet Gears对于操作和允许用户编辑Excel文件非常好,但是在使用VBA进行计算的电子表格上,这些都不起作用。 所以,除了Excel本身,还有其他可以执行VBA的组件吗?

OpenXML电子表格中的单元格样式(SpreadsheetML)

我已经使用OpenXML SDK在C#中生成了一个.xlsx电子表格,但不知道如何获取单元格样式。 我一直在研究由Excel生成的文件,并不能完全弄清楚它是如何完成的。 现在,我创build一个填充,创build一个指向填充的CellFormat ,创build一个CellFormat索引的CellStyleFormat ,然后创build一个CellStyle的CellFormat 。 以下是我用来生成文档的代码: Console.WriteLine("Creating document"); using (var spreadsheet = SpreadsheetDocument.Create("output.xlsx", SpreadsheetDocumentType.Workbook)) { Console.WriteLine("Creating workbook"); spreadsheet.AddWorkbookPart(); spreadsheet.WorkbookPart.Workbook = new Workbook(); Console.WriteLine("Creating worksheet"); var wsPart = spreadsheet.WorkbookPart.AddNewPart<WorksheetPart>(); wsPart.Worksheet = new Worksheet(); var stylesPart = spreadsheet.WorkbookPart.AddNewPart<WorkbookStylesPart>(); stylesPart.Stylesheet = new Stylesheet(); stylesPart.Stylesheet.Fills = new Fills(); // create a solid red fill var solidRed = […]