export-to-excel

How to export multilingual MySQL table to Excel without garbled text (e.g. à¹à¸­à¸™à¸™à)?

I have a MySQL table where I store text entered in any kind of language. The text is displayed correctly on the website, example but when I export the data to Excel I get garbled text. I tried exporting the data via PHPMyAdmin and even just doing something from the command line like mysql -user -p db < query.sql > export.tsv and I get...

ASP.NET: How to convert schema to Excel xsl

Hello all, I have the following xml schema: <?xml version="1.0" encoding="utf-8"?> <xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0"> <xs:elemen...

Exporting data from SQL Server to Excel

Hi, i;m trying to automate the exporting of data from an sql server table to an excel using this script EXEC sp_makewebtask @outputfile = 'C:\testing.xls', @query = 'Select * from HCIndonesia_20Jul2010..Combine_Final', @colheaders =1, @FixedFont=0,@lastupdated=0,@resultstitle='Testing details' but i;m getting an er...

export XML -> Excel

I'm already generating an excel XML file (.xml) containing 2 worksheets. issue #1: the people downloading the XML file wouldn't know to open the file in Excel. (they'd complain.) solution #1: I rename the file to .XLS instead of .XML. issue #2: when opening the file in Excel i get the this error: The file you are trying to open, ‘...

export IEnumerable<T> to Excel

anybody knows how or some library to use for this ? ...

PHP export to Excel opens twice

I'm using the Spreadsheet_Excel_Writer plug-in to perform a data export from a PHP web app. All has worked well for quite some time now, but my client just informed me that in the last couple days the export behavior has changed: the downloaded file opens in Excel, then starts a new Excel instance and opens again. If you try to edit eith...

Excel Export Blank Sheet Problem

I've had some code that has worked for years to export an html table to Excel. It goes like this- private void ExcelExport ( string core_number ) { // set response up for excel export Response.Clear (); Response.Buffer = true; Response.ContentType = "application/vnd.ms-excel"; Response.AddHeader ( "con...

Exporting data with Display Tag and external pagination

We use the Display Tag Library to display grid data in our JSP's. We use external sorting and pagingation. And we also use the library's export feature to allow exporting to Excel or PDF. Issue is the export is only exporting the data on the current set of results (ie: rows 20-40) while we want the export to include all rows. Any...

How to specify the name of the generate file to the e:worksheet function

We use the jboss seam-->excel module integration for generating excel sheets using e:worksheet. But the downloaded file name comes out as ExportUsers.jxl.xls, I would rather see this as ExportUsers.xls. How do I customize this information. ...

ColdFusion export to Excel

Hi everyone, I'm have a hard time getting the account number to display correctly when exporting data from database to an Excel spreadsheet. Please see the attach image. Under Company Name column "Company Name" and "AMCE" account number are showing up correctly. "Baba Gump" and "Another Name" is not display correctly. Users would hav...

SSIS incorrect datatype at Excel destination from SQL database 2005

I'm hoping someone can help me, I've explored google to death and I just can't seem to find the answer. I'm new to using SSIS, so I don't know if this is possible...I am exporting data from SQL server database to an Excel file, which works well but it exports all numeric as string. I then have to go in a manually convert it to numbers....

When exporting gridview to xls, the entire row is formatted. How can I limit this to my gridview columns

I have a gridview that I am exporting to an excel file. When I open the excel file, the alternating row color extends to the end of the excel table, but I only want my 6 data columns to be formatted. How can I limit the formatting? My gridview: <asp:GridView ID="grdExportable" runat="server" BackColor="White" ForeColor="Black" ...

How to use JSP/JSTL to create a CSV file

Hi, I have created a jsp file, with a simple table on it. I would like to create another jsp file that users can open in Excel or save as an xls. This is my entire jsp file, this creates a csv file which opens in Excel when a link is clicked: <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib prefix="c" uri="http://jav...

Open source component or unit for exporting Delphi TDataSet to native XLS without Excel installed

Do you possibly know about the existence of a free and open sourced Delphi code to export TDataSet to native XLS format? The question was previously asked here, yet I am looking for a free solution. As observed in for example TeeChart.TeeStore.TSeriesDataXLS.SaveToStream writing a native XLS export function is not a rocket science, yet ...

exporting php output as excel

include_once 'mysqlconn.php'; include_once "functions.php"; $filename = $_GET['par'].".xls"; header("Content-type: application/x-msexcel"); header('Content-Disposition: attachment; filename="'.basename($filename).'"'); if ($_GET['i'] == "par1") { func1(); } else if ($_GET['i'] == "par2") { echo "şşşıııİİİ"; func2(); } else if (...

Zip code is dropping leading zero when displayed on excel. Export to excel from vb.net XML to XSLT transform.

I am exporting data from vb.net to excel and it is dropping the leading zero when its displayed on excel. How can I avoid the dropping of leading zero? I read the solution of adding a single quote but it makes my excel sheet column ugly. Also users will complain if they see a single quote on zip code field. vb.net code Response.AddHea...

Copy Data into MS-Excel

Hi Everyone, One of my application exports data into Excel format. The data in one of the column looks like '12/12/12', '12.5/13.9/12' and '12,12'. The problem I am facing is, excel coverts this data to DATE formate. and it makes '12/12/12' to '12/12/2012'. I tried to change the format of column to TEXT (right click on selected column a...

Typeof data in GridView/ Listview bound, template and auto-generated fields

Background: I'm populating lots of asp.net c# GridViews and ListViews from a database and subsequently users may export them to Excel. I want export as native Excel (not html). I can't use office automation, and I'm using JET which works fine. I have no control over users' machines. Question: When doing the export, you have to tell Je...

Add Title Row to RadGrid exported Excel Sheet

I would like to add a Title row to an exported File from a Rad Grid. How can I do this? <telerik:RadGrid ID="RadGridHist" runat="server" DataSourceID="SqlDataSourceHist" Visible="false" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" OnPageIndexChanged="RadGridHist_PageIndexChanged" OnPageS...

ASP/VBScript generated Excel file is blank

Hi all, I have a bit of code that I've used many times to export an HTML table into an Excel file, and it works fine. But now I have a new report that I need to be able to export that works fine when viewed as an HTML page, but viewed in Excel the entire spreadsheet is blank - no grid, no data, nothing. <%Response.ContentType = "applic...