473,386 Members | 1,817 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,386 software developers and data experts.

Reading/Writing to Excel BIFF file

I'm reposting this question as the other post seems to have been
sucked into the net black hole.

I'll keep this short. I am trying to read and edit an Excel workbook
in its native BIFF format. I have documentation on the BIFF format,
and a utility (Biff Edit) to view the contents of the file. As I am
new to handling binary files, does anyone have any input on how to
work with BIFF files?

Here is the output of the first record in the \Workbook stream:

IdName|Id|Size|Stream Ofs|Data|Hex
BOF|0809|16|0|....F.Í.É€......|00 06 05 00 46 18 CD 07 C9 80 00 00 06
02 00 00

One of my questions is from C# how do I access this \Workbook stream?
Once I get that I suppose I just can use the offset to navigate the
other records, but I'm not sure.

Thanks everyone!

Jon Brookins
Nov 15 '05 #1
3 12089
I don't know if I can give you information about Excel Biff specifically but
from a binary file standpoint this is what you can do.

There are multiple Stream types in C# you can use. I would recommend using
a FileStream for this. From there you can read the bytes from the file.

Lookup the FileStream class in MSDN there are some examples about reading
text and binary files.

-Casey
--
Legal Disclaimer: just in case you were wondering:
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jon Brookins" <jo******@pnmi.com> wrote in message
news:fa**************************@posting.google.c om...
I'm reposting this question as the other post seems to have been
sucked into the net black hole.

I'll keep this short. I am trying to read and edit an Excel workbook
in its native BIFF format. I have documentation on the BIFF format,
and a utility (Biff Edit) to view the contents of the file. As I am
new to handling binary files, does anyone have any input on how to
work with BIFF files?

Here is the output of the first record in the \Workbook stream:

IdName|Id|Size|Stream Ofs|Data|Hex
BOF|0809|16|0|....F.Í.É?......|00 06 05 00 46 18 CD 07 C9 80 00 00 06
02 00 00

One of my questions is from C# how do I access this \Workbook stream?
Once I get that I suppose I just can use the offset to navigate the
other records, but I'm not sure.

Thanks everyone!

Jon Brookins

Nov 15 '05 #2
>I'll keep this short. I am trying to read and edit an Excel workbook
in its native BIFF format.


SyncFusion just announced a new product called "ExcelRW" which does
exactly that - handle Excel files natively, in a binary format, and
allows you to read and write those without having Excel installed
locally on the machine:

http://www.syncfusion.com/products/excelrw.aspx

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #3
>I'll keep this short. I am trying to read and edit an Excel workbook
in its native BIFF format.


SyncFusion just announced a new product called "ExcelRW" which does
exactly that - handle Excel files natively, in a binary format, and
allows you to read and write those without having Excel installed
locally on the machine:

http://www.syncfusion.com/products/excelrw.aspx

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ian castleden | last post by:
From time to time I see requests for some sort of python MS Excel interface/software. I have written just such software 100% python (works with Jython too! at least it did a year ago). It was...
6
by: Paul | last post by:
I was wondering if anyone has had an issue where using vba code to read an excel file and import the data into an access table some records are not imported from the excel file. It seems looking at...
7
by: soubhagya | last post by:
hi.. I need to open an excel file and read particular rows column data from particular worksheet and write to another excel file. this is to be done with "C" program..Right now I have no...
1
by: mail2atulmehta | last post by:
Hi, I do not know if this is right place for this, but i need some help. I have a text file, whose values are seprated by a delimiter. I want to open this file in excel, ( not import it) . I have...
4
by: Li Pang | last post by:
Hi, Instead of openning an Excel Worksheet from a file, I set the content of the file into a string (stays in the memory) and I'd like to load it into an Excel Worksheet. Anybody knows how? ...
2
by: mvr | last post by:
Hi all I have a asp page which will get the data from multiple tables (with functions and procedures)and display data in HTML tables <TABLE> on ASP page. Is there any way we can create a excel...
3
by: RJN | last post by:
Hi I've a template excel file which has all the calculations defined. There are certain input values to be entered which gives a lot of output to the user. I don't want to expose the excel sheet...
9
by: dba123 | last post by:
I need some help and direction on what classes and an example or two (article) on how to read an Excel Worksheet and insert one column into a database table column. I am using .NET 2.0 only. What...
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....
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.