export-to-excel

Where to put to_xls and from_xls in a rails app

So I have a model that I need to be able to serialize to/read from an Excel(XLS) document. I am a bit of a loss as to where this code actually belongs. My initial thought is that the to_xls is a view, but after poking around and seeing things like (to|from)_xml and (to|from)_json in ActiveRecord, I was wondering if maybe this stuff belon...

Only number in Excel cell by programming C#

Hello, I generate some Excel file from an .NET C# application. I use PIA 2002. I can password protect, do a freeze pane, change the color of the cells .... one thing I can't do. I'd like to allow for a specific range, the use can enter ONLY a number..... How can I do this ? Thanks, ...

Escaping Parentheses in Excel

I have an ASP.Net website that allows you to export a Gridview to Excel. The Gridview has some column headings with words and then numbers surrounded by parentheses like this: Abc<br>(43) Xyz<br>(55) I have set the bound field's HtmlEncode property to False because I do not want it to escape the line break tags I have in there. This i...

[VB] Spreadsheet from DataTable

In my app, I'm downloading a spreadsheet from FTP, moving the data read from the spreadsheet to a DataTable, and, depending on certain conditions, emailing a new spreadsheet (one that contains certain rows from the 1st spreadsheet). My problem is creating the spreadsheet that will be mailed. I can't seem to work out how to add the row f...

convert excel cell text into number poi

HAI i want ot convert a cell text value into a number in Excel using POI API. cell text value like '2,345' to conver as a number. How can i do that. if any has face this problem,please let me know... ...

"A required privilege is not held by the client" error when using ExcelPackage.

Hi to all , I am using ExcelPackage to create the excel sheet through .net. I am taking the reference at codeplex for creating excel sheet. It is giving me following error: A required privilege is not held by the client. at the line when creating object of FileInfo class as FileInfo newFile = new FileInfo(@"C:\mynewfile.xlsx"); ...

How to export long strings from datasource to excel in Coldufusion and Report Builder

Hi everyone, I have to export some data, stored in a MSSQL database, using Coldfusion server pages. I setup my query with the cfquery tag, I generate my cfr file in Report Builder and setup the cfreport tag like this: <cfquery name="q" datasource="mydsn"> SELECT * FROM table </cfquery> <cfreport format="EXCEL" template="cfrPath/cfrfil...

How do I get the data shown in an Xceed grid and export to XML?

I have an Xceed datagrid v2(express) bound to a list of viewmodels. Each viewmodel consists of several types of objects. For example a viewmodel with a specific contact and its employer object. In the grid I show the contact information and some employer information. What I want to do is get the information shown in the grid instead of...

export query result as CSV through PHP

Say I have stored a query in a variable called $query. I want to create small hyper link called "export as CSV" on the results page. How do i do this? ...

How to export a datagrid to Excel file in Flex?

How do I export data in my datagrid to an Excel file in Flex? Can anyone provide some examples for that? I am browsing but couldn't find out a single example of that kind. EDIT Browsed a lot and found out how to convert datagrid data to csv format. Now How to convert that to excel? Is there a way to do that without using any server sc...

How to export Silverlight 3.0 ListBox contents to Excel & Word?

The ListBox contains multiple ListBoxes which inturn contain many ListBoxItems. The top level ListBox does not have a ItemsSource collection bound to it, rather the child ListBoxes have ListBoxItems that are bound to individual properties in the VM. Is there a way to just dump the ListBox "contents" to an Excel file, may be by converting...

C# and Excel files

I need to create a program that can read from/write to an Excel file. Should I use OleDB or use an Excel Object? What are the advantages of one over another, and where can I read up to get started on implementing this? ...

Hyperlinks not Clickable when Exported to excel

When I Run a Query, the results of it are exported to the Excel. This data has few hyperlinks which get displayed in random (I donno which cell or column). My Issue is that the hyperlinks are getting displayed as normal word and not as clickable hyperlinks. Unless, i click on the particular cell and click outside, the hyperlink doesn't b...

Exporting to Excel the simple way (but not CSV)

Yesterday I found this How-To on exporting data to Excel spreadsheets by simply producing HTML. Seemed like a straightforward way of exporting cells with formatting, what one can not achieve using just CSV format. My idea was to process some data in a Java app, export the results to Excel spreadsheet and make use of Excel's capabilities...

export to excel file from asp.net

I have an ASP.NET 3.5 site that needs to export data to a pre-formatted Excel sheet. I am not allowed to modify the excel sheet in any way, just drop data into specific cells. My question is, What is the simplest way to do this from an ASP.NET site. The user will always have Excel on their machine. Is a 3rd party control my best option...

Gridview: Export to csv issue

Morning all - another day, another question from Rich! I have the following scenario. I have two methods of populating a GridView with data. These are as follows: protected void btSearch_Click(object sender, EventArgs e) { lqPackWeights.WhereParameters.Clear(); ControlParameter cp = new ControlParameter(); cp.Type = TypeCo...

Asp.Net Hierarchical Grid, Frozen Header and Export to excel - need expert suggestion

Here's a link to the Dashboard page that I'm trying to built (image of the old implementation) So, basically the Grid needs the following features: Parent-child cascading (only 1 level) - the yellow row are parent Grid which expand-collapse (simple js trick). The whole Grid needs to have a 'frozen' header. As you can see in the image...

Making new colors in JExcelApi

I'm using JExcelApi for generating XLS files. From jxl.format.Colour, I see how to get any of the colors in the "standard Excel colour palette", but not how to create a new color (say, given its RGB). But in Excel itself, I can pick any color at all. Am I just missing it? Is there a way in JExcelApi to select an arbitrary color? I'm...

Pear Excel Writer: trimming leading zeros - how to prevent?

I'm using the Pear Excel Writer package to export a dataset to Excel from PHP. My problem is some of the data fields have leading zeros (such as a zip code), but these are being trimmed in Excel. I tried adding an apostrophe to the start of the fields to force a text field, but then Excel displays it, which I don't want. I'm neither a PH...

What's a robust method in R for importing from and exporting data to Excel?

I've used RODBC for some time to import Excel spreadsheets with mostly good results. However I have had no luck writing to an Excel spreadsheet. Also are there favorable differences using the xlsx format with Excel2007? ...