473,700 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 12113
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.goo gle.com...
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)i nova.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)i nova.ch
Nov 15 '05 #4

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

Similar topics

3
3226
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 once based (shamelessly) on the the Perl equivalent but now has gone its own way. It has been used in anger (i.e. people once payed me money to use it :-) and includes both generation and scaning of Excel files. There's even some documentation for...
6
18846
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 the data in the excel file that if the first character in the excel file cell is numeric it will read and write only numeric values only. If I sort the coloumn in the excel file and the first character in the cell read is alphanumeric then only...
7
5684
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 software installed on my system what are the software required to do this and what are the steps to follow to achieve this..
1
4685
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 written the driver prg in c#. The code opens the file, but it is not writting the values from text file into excel file. I can not figure out the problem here. This is my code: StreamReader dataFileReader = null; FileInfo file = null;...
4
1332
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? Thanks in advance
2
3179
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 file from the output of this ASP file. I know how to export if this information on ASP page is coming from single query from a database table. Any suggestions???
3
3283
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 to the user as calculations become visible. I'm writing a web interface which takes the input values from user, updates the excel sheet and returns the recalculated output from the excel file. I'm using ADO.Net to update and read the excel file.
9
22500
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 namespaces and classes should I use and how? -- dba123
3
4049
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. File size is extremely large in some cases 2. Our clients using older versions of Excel or OpenOffice 2.0 cannot open these files. So, we would want to export to excel using the BIFF format. But from
0
8649
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5904
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4408
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4660
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3097
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.