473,761 Members | 5,848 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 12119
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
3228
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
18848
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
5687
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
4692
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
1334
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
3183
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
3287
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
22503
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
4054
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
9522
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
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,...
0
10111
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9902
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
9765
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...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6603
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
5215
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...
3
3446
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.