xlsx

Problems Reading a .xlsx file?

I made a test file, and ran through the excel file just fine, but whe nI insert one with a lot of data, I get the following error: The Microsoft Office Access database engine could not find the object 'Sheet1$' Which seems incredibly obvious, but 'Sheet1' is surely there, just like in my test file - I have checked about 30 times. The...

How to convert xlsx files into 2003 xls files programatically in C#?

I've found ExcelPackage, a better library than Excel Interop API to create and mantain programatically excel sheets, but they are generated in .xlsx. Most of people that will see the files have only office 2003 installed, so I need to convert, in my C# code, the final result into a .xls file. Do you know any way to do it in C# code? **...

Parsing an Excel file in C#, the cells seem to get cut off at 255 characters... how do I stop that?

I am parsing through an uploaded excel files (xlsx) in asp.net with c#. I am using the following code (simplified): string connString = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileLocation + ";Extended Properties=\"Excel 12.0 Xml;HDR=YES\";"); OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM [Sheet...

How to open Excel 2007 (xlsx) file with CDaoDatabase

Using CDaoDatabase defined in afxdao.h, how can I open up Excel 2007 (xlsx) files? I can open up Excel 2003 (xls) files using the connection string Excel 8.0;HDR=NO;IMEX=1, anybody know how I can do this? Thanks! ...

How to extract plain text from a DOCX file using the new OOXML support in Apache POI 3.5?

On September 28, 2009 the Apache POI project released version 3.5 which officially supports the OOXML formats introduced in Office 2007, like DOCX and XLSX. Please provide a code sample for extracting a DOCX file's content in plain text, ignoring any styles or formatting. I am asking this because I have been unable to find any Apache P...

Handling office open xml (xlsx) documents with PHP

Hi all, I need to create sort of a php based Excel (xslx) handling component. I figured that there are several open source projects around which are into this. Does anyone has particular experiences / advice on this for me? I.e. which one to go with, which one is to be avoided? I tend to go with PHP-Excel. thx in advance for your thou...

Problem opening Office 07 documents in SharePoint 07 library with read-only permissions

The call center managers for my company use document libraries in a SharePoint 2007 site to post training material and information to our phone reps. These reps are given read-only access to the libraries as to not change the documents posted by management, however we find that if management uploads an Office 07 document (either docx or...

Reading xlsx file using SmartXLS

Can anybody please tell me how to use SmartXLS to read xlsx file by giving an example? ...

SharePoint document library: Fail to open xlsx in Excel 2003 (with compatibility pack)

My company is using WSS 3.0 to host a document library storing (mostly) Office 2007 format documents. Company PCs have either Office 2003 (with the 2007 compatibility pack) or Office 2007 installed. We didn't have any problem getting docx to work, but xlsx documents don't open properly when we use the SharePoint document edit options. T...

Creating Excel Files with # in Column Name

I'm having problem creating Excel files using Jet. When I create a table and give it a Column name as CreateTable [Sheet1] ([ColumnName#] String) It replaces the header column with ColumnName. Is there a way I can make excel give the column headers a name with out any conflict in what characters I can have in it? Are there any esca...

PHP Read xlsx Excel 2007 file

I am using oleread to read uploaded xls file. But I am not able to read xlsx files saved in excel-2007 format. can someone help me on how to read xlsx file in PHP. ...

Read Excel 2007 file (.xlsx) in C#

My code was quite sufficient for reading xls file in C# (using Microsoft.Jet.Oledb.4.0) but when I tried to read Office 2007 (xlsx) file, it didn't work. I searched and found that it could be read using Microsoft.ACE.Oledb.12, I tried and it worked. Can anyone tell me the difference between the two ? and why xlsx file can not be read usi...

What does the "s" attribute signify in a cell tag in XLSX

In the XML of a worksheet in an XLSX file (Excel 2007) cell tags that have a "t" attribute equal to "s" are string types. The value tag inside the c needs to be looked up and converted via the sharedStrings document. But, some cells have s="237" and no t attribute at all. The value tag has an integer like 39448 which does not relate ...

Python .xlsx (Office OpenXML) reader as simple as csv module?

I know some Python xlsx readers are emerging, but from what I've seen they don't seem nearly as intuitive as the built-in csv module. What I want is a module that can do something like this: reader = xlsx.reader(open('/path/to/file')) for sheet in reader: print 'In %s we have the following employees:' % (sheet.name) for row in...

Convert .csv to .xls in Java.

Hey everyone, Does anyone here know of any quick, clean way to convert csv files to xls or xlsx files in java? I have something to manage csv files already in place and I need the extra compatibility for other programs. Sample code in addition to package names is always well appreciated. Many thanks, Justian Here's my code thus fa...

IE6 opening XLSX file as an XLS file

My application generates XLSX files based on a users requirements. After the XLSX file is generated the user is redirected to where the file is saved using Response.Redirect... Response.Redirect("filename.xlsx") When the user then opens the file... they recieve this message. The file you are trying to open, 'filename.xls', is in a di...

How to groupColumn in .xlsx files using POI 3.6 ?

Hello, I recently switched from POI 3.1 (HSSF) to POI 3.6 (XSSF) and encountered a problem. The problem is that the groupColumn no longer works as expected! Does anyone know why the column grouping works properly only BEFORE writing in the cells from the worksheet and does not work well AFTER the worksheet is written? Is there a way...

Serialize Deserialize to/from xlsx

Given the following assemblage of classes (contrived): public class School { [PrimaryKey] public string Name {get; set;} [Set] public IList<Teacher> Teachers {get; set;} public class Teacher { [PrimaryKey] public string Name {get; set;} I'd like to have the object hierarchy serialized into a single sheet of an xlsx file, ...

how to convert/import/create a CSV file to excel (xlsx) using C# forms

Hi guys, I am trying to convert CSV file to MS Excel file. one of the issue, is that my CSV file , which I am getting from client, is not well formed. I tried to parse it with different approach but none of them end up with expected results. therefore I had to manually open the CSV file in Excel and save it as .xlsx and then use it for ...

read db as all text

Im reading a xlsx file as a db to do some work i noticed that its reading some feilds in as int and date even though i just want it all to come in as text . is there anyway to override this feature? Code below (feel free to point out anything i could be doing better with my code as well) private DataSet ExceltoDT(OpenFileDialog dia...