csv

How to export single Report data into multiple files of single format?

Hello All, My report size is very high. So it is giving problem while exporting in any format. But I want all Report data should be exported. So is it possible to export this large sized data into multiple files of same format? Say, if my report contain 3000 events, then rather than exporting it in single file (say csv format file), ca...

How can I convert HSSFWorkbook into a CSV file..?

I wish to convert HSSFWorkbook into a CSV file format and then write it to ServletOutputStream where I have setContentType as text/x-csv. Thanks in advance. ...

Reading CSV files in C#

Does anyone know of an open-source library that allows you to parse and read .csv files in C#? ...

Reading a CSV file in chunks

For a new import feature for my users, I'm using fgetcsv to read CSV files generated by social book cataloging sites like LibraryThing and Shelfari and then I run a series of Amazon queries to look up ISBNs from within the files. I want to be able to have users confirm the titles that match certain criteria, then add them to their local ...

How to apply Loop to working Python Selenium Script?

Hi, I'm trying to figure out how to apply a for-loop to this script and I'm having a lot of trouble. I want to iterate through a list of subdomains which are stored in csv format (ie: one column with 20 subdomains) and print the html for each. They all have the same SourceDomain. Thanks! #Python 2.6 from selenium import selenium impo...

Ruby: cannot parse Excel file exported as CSV in OS X

I'm using Ruby's CSV library to parse some CSV. I have a seemingly well-formed CSV file that I created by exporting an Excel file as CSV. However CSV.open(filename, 'r') causes a CSV::IllegalFormatError. There are no rogue commas or quotation marks in the file, nor anything else that I can see that might cause problems. I suspect the...

Import CSV from url address and export as XML -- Rails

Two questions: How can I import a file from a web address, without a form? Example: Organisation.import(:from => 'http://wufoo.com/report.csv') How can I use xml builder without pulling from the db? More Info My company uses wufoo for web forms. The data from wufoo is exported as csv files. To get the data into my company's cms, it...

Best method for importing csv or excel file to SQL Server 2005 using .net MVC view

Hi, I'm looking for the best method for importing csv or excel file to SQL Server 2005 using .net MVC. Thank you. ...

Export file as CSV in Crystal Report 11

Hi I am trying to export a report as CSV format from Crystal Reports 11, but the problem is that each string value is wrapped inside quotes, which I don't want. I tried to set the delimiter as space but it didn't works. Can someone please help me with this..? Here is my code: elseif ExportFormat = "CSV" then ExportType = "5" ExportFile...

Bash shell scripting - csv parsing

I am trying to parse a CSV containing potentially 100k+ lines. Here is the criteria I have: The index of the identifier The identifier value I would like to retrieve all lines in the CSV that have the given value in the given index (delimited by commas). Any ideas, taking in special consideration for performance? ...

Retrieving and displaying UTF-8 from a .CSV in Python

Basically I have been having real fun with this today. I have this data file called test.csv which is encoded as UTF-8: "Nguyễn", 0.500 "Trần", 0.250 "Lê", 0.250 Now I am attempting to read it with this code and it displays all funny like this: Trần Now I have gone through all the Python docs for 2.6 which is the one I use and I can...

python csv help

Sometimes I need to parse string that is CSV, but I am having trouble whit quoted comas. As this code demonstrated. I am using python 2.4 import csv for row in csv.reader(['one",f",two,three']): print row i get 4 elements ['one"', 'f"', 'two', 'three'] but I would like to get this ['one", f"', 'two', 'three'] or 3 elements even ...

How to Open a CSV or XLS with Jet OLEDB and attain Table Lock?

I am trying to figure out how to read/write lock a CSV or XLS file when I read it as a Database via Jet OLEDB. The following code will open a CSV as a DB and load it into a DataTable object: private DataTable OpenCSVasDB(string fullFileName) { string file = Path.GetFileName(fullFileName); string di...

Outlook Contact Export to CSV format differences

Outlook 2003 and Outlook 2007 allow you to export your contacts to CSV format. Is there a difference between the two or is this in fact the same format; in other words, are they backward compatible or did Outlook 2007 create some new fields that Outlook 2003 would have trouble importing? ...

Bulk insert into SQL Server a CSV with line breaks in fields

I have a csv that looks like this: "blah","blah, blah, blah ect, ect","column 3" "foo","foo, bar, baz more stuff on another line", "another column 3" Is it possible to import this directly into SQL server? ...

C# Excel import data from CSV into Excel

How do I import data in Excel from a CSV file using C#? Actually, what I want to achieve is similar to what we do in Excel, you go to the Data tab and then select From Text option and then use the Text to columns option and select CSV and it does the magic, and all that stuff. I want to automate it. If you could head me in the right di...

Synchronizing between SQL Server and CSV file

What is the better way to synchronize a table (customers), inside SQL Server and the curtomers inside an CSV file in Microsoft Excel? Ok, here is the explanation: I am developing a software in C#.NET 2008, and I create a table named Customers in SQL Server 2005. The contents of this table comes from a csv file and the user can add more ...

AppEngine GeoPt Data Upload

I'm writing a GAE app in Java and only using Python for the data upload. I'm trying to import a CSV file that looks like this: POSTAL_CODE_ID,PostalCode,City,Province,ProvinceCode,CityType,Latitude,Longitude 1,A0E2Z0,Monkstown,Newfoundland,NL,D,47.150300000000001,-55.299500000000002 I was able to import this file in my datastore if I ...

How to read a csv file with python

Hello, I'm trying to read a csv file but it doesn't work. I can read my csv file but when I see what I read, there where white space between values. Here is my code # -*- coding: iso-8859-1 -*- import sql_db, tmpl_macros, os import security, form, common import csv class windows_dialect(csv.Dialect): """Describe the usual prope...

Regular expression to find unescaped double quotes in CSV file

What would a regular expression be to find sets of 2 unescaped double quotes that are contained in columns set off by double quotes in a CSV file? Not a match: "asdf","asdf" "", "asdf" "asdf", "" "adsf", "", "asdf" Match: "asdf""asdf", "asdf" "asdf", """asdf""" "asdf", """" ...