XLSX

Problems opening .xlsx file created with EPPlus and zipped in a folder with ICSharpCode.SharpZipLib

╄→гoц情女王★ 提交于 2019-12-10 18:08:26
问题 I am creating a list of ExcelPackages (xlsx documents) using EPPlus, and adding them to a ZipOutputStream as ZipEntries. I think the Excel documents should be valid, as I can open them just fine when I write one of them to the Response object without zipping. The zip folder is created as expected, and the file(s) are there and doesnt seem to be empty, but when I try to open them I get the following error in Excel: Excel cannot open the file {Name}.xlsx because the file format or file

Export Excel File with .xlsx Extension

半城伤御伤魂 提交于 2019-12-10 17:35:24
问题 I' m trying to export xlsx file with these codes: DataTable dataTable= new DataTable(tableName); OleDbDataAdapter adapter = new OleDbDataAdapter(select, accessConnection); adapter.FillSchema(dataTable, SchemaType.Source); foreach (DataRow result in dtResult.Rows) { DataRow newRow = dataTable.NewRow(); foreach (DataRow drAssign in dtAssignment.Rows) { newRow[drAssign["Destination"].ToString()] = result[drAssign["Source"].ToString()]; } dataTable.Rows.Add(newRow); } adapter.Update(dataTable);

NPOI - Writing to file corrupts .xlsx workbook

不打扰是莪最后的温柔 提交于 2019-12-10 17:32:19
问题 I have a piece of code that is currently writes to a .xls workbook ( HSSFWorkbook ) with no issue. However when I try to use the same code to write to a .xlsx workbook ( XSSFWorkbook ) the archive becomes corrupted and cannot be opened in excel. The following code is what I am using to access the workbook, edit the workbook, and then save back to the workbook. I originally assumed that the code that I was using to edit the workbook was the issue, but after commenting it out the issue still

Creating an xlsx sheet in R - font colour not working

大兔子大兔子 提交于 2019-12-10 16:33:31
问题 I am working on a project where I need to automate the production of spreadsheets of data from a particular type of data-frame. I have read a useful explanation of how to do this here, and based on this explanation, I have created some code in R.Studio (professional version 1.1.383) using the xlsx package (version 0.5.7). My code generates a spreadsheet of data from an existing data frame TABLE . Here is the code I am using, with a mock data frame used to create a reproducible example: #In

Suppress dialog when using VBA to save a macro containing Excel file (.xlsm) as a non macro containing file (.xlsx)

我是研究僧i 提交于 2019-12-10 16:14:36
问题 How do I suppress the dialog that says "Visual Basic macros will be removed if you save the file in this format. Are you sure you want to use this format?" (see picture below). Essentially, I'm trying to use a macro to save a .xlsm file as an .xslx file?. I've tried all the dialog suppression code I can find and it isn't working. Here's my code: Private Sub SaveWithNoMacros() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.EnableEvents = False ActiveWorkbook

Fatal error: Out of memory (allocated 1979711488) (tried to allocate 131072 bytes) error occur while writing xlsx file using phpexcel

五迷三道 提交于 2019-12-10 15:41:55
问题 I have integrating xlsx file for writing from database using phpexcel. I want to write 3,00,000 records in xlsx file. But it till through Fatal error: Out of memory (allocated 1979711488) (tried to allocate 131072 bytes) My PHP Version 5.3.28 Also i set php ini and cell cache see my code below ini_set('max_execution_time',-1); ini_set('memory_limit', '-1'); $cacheMethod = PHPExcel_CachedObjectStorageFactory:: cache_in_memory_gzip; $cacheSettings = array( ' memoryCacheSize ' => '-1'); PHPExcel

Location of query definition in XLSX file

我只是一个虾纸丫 提交于 2019-12-10 14:33:17
问题 After creating an xlsx file with the following custom query (loading data from the jsonplaceholder service from typicode.com) let Source = Json.Document(Web.Contents("https://jsonplaceholder.typicode.com/posts")), #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error), #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"userId", "id", "title", "body"}, {"userId", "id", "title", "body"}) in #"Expanded Column1" and

Does the xlsx package work for xlsm files in R?

若如初见. 提交于 2019-12-10 14:13:25
问题 I am trying to read a range into a data.frame from a xlsm workbook. Can I do this with the xlsx package in R? If not, does anyone know of a way to do it? Thank you! 回答1: Did you try using read.xlsx or read.xlsx2 as described in the manual? http://cran.r-project.org/web/packages/xlsx/xlsx.pdf If these do not work with your file format, and you are trying to access tabular data you might want to open the .xlsm and export your data to csv format. These are easily imported uisng read.csv(

How to properly create and download a dynamically generated binary *.xlsx file on .net MVC4?

ぐ巨炮叔叔 提交于 2019-12-10 11:45:35
问题 I need to make an 'export to excel' feature. Excel is a binary file, and it sends a warning on msExcel if you use its XML format. What i'm currently doing is keeping a state object (since i need to be aware of the various changes a user is making) with all my data and passing it to a .net MVC controller using ajax, which uses a library to create the *.xlsx file. client side: $.ajax({ type: "POST", url: "/path/to/exportController", data: exporter.getData(), success: success, error: error,

【更新】Infragistics Ultimate UI for Windows Forms v18.2发布

亡梦爱人 提交于 2019-12-10 11:28:39
下载Infragistics Ultimate UI for Windows Forms最新版本 Infragistics Ultimate UI for Windows Forms 界面包是一个全面的表示层工具集,主要用于设计商业级的WinForms应用程序、WinForms图形用户界面。本产品囊括了所有主要的界面元件,包括:表格、调度控件、图表、工具栏、菜单、列表栏、树、标签页、浏览器栏、用户界面以及编辑器等等。 在这个18.2版本中,我们投资了图表、Excel库、电子表格等等。 Windows Forms图 在Windows Forms中,用户将得到与WPF、JavaScript和Angular中附带的高性能、功能齐全的图表。有了85+的图表类型、全触摸支持,以及处理数百万数据点的实时流的能力,我们将继续添加一些特性,这些特性为用户的应用程序提供更多的数据可视化价值。 标注说明 使用Callouts Annotation,用户可以在类别图表和数据图表中注释重要的数据点,或者甚至基于用户的逻辑定制调出框中的值。例如,计算数据源中的最大值。 十字线注释 用户可以在“数据图表”和“类别图表”中配置十字线,以便在鼠标光标的位置显示为水平线、垂直线或两者。此外,Crosshairs Annotation可以在鼠标光标位置显示数据点的值,并在X-Axis和Y