473,382 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Issue in comparing excel files after changing the format from .csv to .xlsx

12
HI!,
i am comparing two excelsheets,
1.one of which contains the data exported from
database and

2.one which i will download from application.

The excelsheet which i am going to get from application will be in .csv format.
and the data from the database will get exported in excel will be in .xlsx format.

now,i have to change the format of file which i am getting from application(.csv to .xlsx) so tht i can compare both files.

1. I have tried to "save as" tht .csv file into .xlsx format and then comparing both.
but the code which i have written for comparing is not working.

Its giving error like size mismatched.( in script i have given condition like if row_count and col_count of both files does not matches then "size mismatched")

2. Rather than changing tht extension from .csv to .xlsx if i manualy copy tht .csv file data into new fresh excel and
then compare the file with file which has the exported database data.
my script works.

so can anybody suggest me why it is happening?
Apr 13 '12 #1
1 1782
Anuja T
12
issue resolved.
there were multiple blank sheets present in that workbook which contains worksheet to be compared.that is why faced issue.
after deleting that blank sheets,my script working fine.
Apr 13 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ben- | last post by:
I want to import and export Microsoft Excel files. Are there libraries for this ? If someone have advices to give, I'm interested ! -- Mérouze Benoît EPITA SIGL Promotion 2005...
0
by: Oci-One Kanubi | last post by:
Everything works fine in Access, but when I double-click on the resultant Excel files the first one opens correctly, but subsequent ones, and any other Excel files I try to open, fail to display at...
3
by: yaya via DotNetMonster.com | last post by:
Hi, I'm using OleDb to read an excel files and display the data in a datagrid (using dataset as data source), after modifying the data on datagird, how can I save the changes back into Excel files. ...
3
by: ggupta78 | last post by:
Hi, Currently in our application we use the MHTML way of exporting to Excel i.e we render the datagrid HTML and set the MIME type to Excel. This works great but has the following limitation: 1....
3
by: Maxwell2006 | last post by:
Hi, We have Excel 2003 templates and we need to automatically generate excel 2003 xls files based on our SQL server database tables' data. Since we need to generate the xls files at out asp.net...
4
by: rn5a | last post by:
Which namespace do I have to import to work with MS-Excel files? I have a Excel file named 'Procs.xls' in which there is some data in 'Sheet1'. What I would like to do is by clicking a Button in...
18
by: gonzlobo | last post by:
No, I don't want to destroy them (funny how the word 'decimate' has changed definition over the years) :). We have a data acquisition program that saves its output to Excel's ..xls format....
0
by: motmotmot | last post by:
Hi guys. I have a Excel Template where users can fill up. Then i have a web application that allows users to upload Excel files. I was wondering if anyone knows how i can verify if the Excel file...
1
by: Avi1 | last post by:
Hi, I got the code (from the internet)for comparing two files and showing the difference in contents.Now,I tried the same code for two files written in japanese language(kanji).If I save the two...
1
Manikgisl
by: Manikgisl | last post by:
HI We need to open the excel document which may contian different versions .xls .html format .xlsx .csv The problem:
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.