export-to-excel

Generate/Export excel file from Java Play Framework 2.0 List<object>

两盒软妹~` 提交于 2019-12-21 20:50:22
问题 I need to generate/export a excel file from a table that is generated from a list of objects. I can see that there is a module for Play 1.x but not for Play 2.x and. I found a possible solution but it is written in scala (I think) here: http://aishwaryasinghal.wordpress.com/2012/05/17/generating-excel-in-play-2/ I've tried to implement this but I think my imports doesn't work. import java.io.FileOutputStream; import org.apache.poi.xssf.usermodel.*; import org.apache.poi.xssf.*; import org

Export data to *.xls file by using xml to create the file on an iOS 5 App

限于喜欢 提交于 2019-12-21 19:53:33
问题 I'm using the following code, to create an *.xls file on my iOS App. Everything is going right. I can open it with Microsoft Excel but, if I would like to open it with Apple Numbers, it doesn't work. - (void)exportToExcel { NSManagedObjectContext *context = [self managedObjectContext]; NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSError *error; NSString *header = @"<?xml version=\"1.0\"?>\n<Workbook xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\"\nxmlns:o=\"urn:schemas

Exporting jsp tables to excel, word, pdf

Deadly 提交于 2019-12-21 13:12:21
问题 Can anyone suggest me any library/jar files which I can use to export my table to excel/pdf/word. Please tell me if there is any library by which I can create reports in jsp. 回答1: It should also be mentioned that you can export tables to Excel simply by outputting an HTML table, and setting response-type to application/vnd.ms-excel . No external libraries whatsoever needed. Something like this: <%@ page language="java" session="true" %> <%@ taglib uri="/WEB-INF/tld/response.tld" prefix="res"

How to enable excel export button for jqGrid

老子叫甜甜 提交于 2019-12-21 06:24:17
问题 Hello I want to show "export to excel" button in the pager of jqgrid. I tried many ways, read many articles/posts, but I don't see this button. Documentation does not have anything useful too. Which actions should I do to see this button Ps. I use ASP.NET MVC PSS. my code is <link href="../../Scripts/jquery.UI/css/redmond/jquery-ui-1.8.1.custom.css" rel="Stylesheet" type="text/css" /> <link href="../../Scripts/jquery.jqGrid/css/ui.jqgrid.css" rel="Stylesheet" type="text/css" /> <script type=

HTML Export to Excel using JavaScript ,WORKING IN FIREFOX but NOT IN IE & CHROME

依然范特西╮ 提交于 2019-12-20 15:36:27
问题 I have a database generated table using PHP . For exporting the table , I am using the following code to save its contents in .xls format. Previously this script was working fine in Chrome , but now it has stopped ...when I click the button then a window opens but NO FILE GETS DOWNLOADED.....? BUT IN FIREFOX it works What may be the problem in Chrome ? How do I find out that problem , is there any tool to find out the script problem in Chrome? Please help. $( "#Export" ).click(function() {

How to Freeze Top Row and Apply Filter in Excel Automation with C#

被刻印的时光 ゝ 提交于 2019-12-20 09:46:33
问题 I have automation to create an Excel document from C#. I am trying to freeze the top row of my worksheet and apply filter. This is the same as in Excel 2010 if you select View > Freeze Panes > Freeze top row, and then after selecting top row Data > Filter. I do not have any idea how to apply the filter but the following is what I tried for freezing the top row and it just froze the entire worksheet. Does anyone have a solution to my problem. The data filter problem is where I need more help

How to export Datatables table to Excel which works in IE as well

旧街凉风 提交于 2019-12-20 03:30:51
问题 I am using var tableToExcel = (function() { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><!

how to export excel without EnableEventValidation=“false” because of lock issues in excel

柔情痞子 提交于 2019-12-19 11:25:01
问题 I have a code for exporting excel on button click: protected void btn_Excel_Click(object sender, EventArgs e) { try { empData1.ShowHeader = true; bindGrid(); Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=doc_name.xls"); Response.Charset = ""; Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; using (StringWriter sw = new StringWriter()) { HtmlTextWriter hw = new HtmlTextWriter(sw); foreach

export Gridview to Excel using ClosedXML without warning: the file you are trying to open is in a different format

只愿长相守 提交于 2019-12-19 09:18:20
问题 I am working on a ASP.NET 4.5 Webform and I have a Gridview (that has custom TemplateField and gets data from a sqlDataSource) I have this event to export the gridview contents to an excel sheet, and it does its jobs well except the created file is giving out an warning when user open it (which I understand because the file that got created is not an actual excel file): "the file you are trying to open is in a different format than specified by the file extension" protected void btnExport

Generating Excel documents with Ruby

时光怂恿深爱的人放手 提交于 2019-12-19 09:11:21
问题 I need to generate Excel documents with Ruby (from Rails) on a Linux machine. I know of Spreadsheet::Excel, but it doesn't support formulas, and uses a pretty old format. Is there any other option, not necessarily free or open source, that is a bit more powerful? 回答1: How about opening a spreadsheet (Spreadsheet::Excel) with the formulae already populated. Entering data into the referenced cells will cause them to display the result. 回答2: How about https://github.com/randym/axlsx This gem can