472,983 Members | 2,643 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Export to Excel in BIFF format

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
what i have understood after googling for BIFF is that:
* Microsoft has just provided documentation on this format, but there
are no API's in the .Net framework that would help us to save data in
the BIFF format.
* We would either have to do Excel automation using COM interop, which
is generally not recommended, or use a pure .net third party component
to create excel files in the BIFF format.
Also hav'nt found any free third party components so far, we would have
to purchase one.

So basically i need to know if there is any easier way of exporting to
excel in BIFF format? or if there are any free components/libraries
available?
Would be grateful if any one who has solved this kind of an issue
before can point us in the right direction.

TIA,
Gautam

Nov 10 '06 #1
3 4002
See www.connectionstrings.com

The extended property can be set to "Excel 8.0"
Then you can use the oledb provider to create an xls using Create Table
statements and such.
We use it, it's super.
Wonder how we'll be able to embed formulas this way, i don't know.
You can do the same for csv but you can make csv 'manually' as well and old
excel could reado those as well.

<gg******@gmail.comschreef in bericht
news:11**********************@h48g2000cwc.googlegr oups.com...
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
what i have understood after googling for BIFF is that:
* Microsoft has just provided documentation on this format, but there
are no API's in the .Net framework that would help us to save data in
the BIFF format.
* We would either have to do Excel automation using COM interop, which
is generally not recommended, or use a pure .net third party component
to create excel files in the BIFF format.
Also hav'nt found any free third party components so far, we would have
to purchase one.

So basically i need to know if there is any easier way of exporting to
excel in BIFF format? or if there are any free components/libraries
available?
Would be grateful if any one who has solved this kind of an issue
before can point us in the right direction.

TIA,
Gautam

Nov 10 '06 #2
Hi Edwin,

Thanks for your reply.

I have understood a little of what you meant. Basically i have seen
code that can treat an excel file as a datasource and read data using
the OleDb connection. So similarly i guess what you are saying is that
we can create a table in excel and populate it with data.

But it would be great if you can give me some sample code.

Also, I guess its not possible to introduce certain formatting
attributes like font size, weight or colors using this method, right?
since we would like to set formatting as well.

thanks,
gautam

Nov 10 '06 #3
For reading i have:

http://www.hellobasic.com/cgi-bin/fo...num=1133003929

For creating and such not at this time, maybe later.. ever.

I learn about everything from here:
http://www.w3schools.com/sql/sql_create.asp

<gg******@gmail.comschreef in bericht
news:11*********************@k70g2000cwa.googlegro ups.com...
Hi Edwin,

Thanks for your reply.

I have understood a little of what you meant. Basically i have seen
code that can treat an excel file as a datasource and read data using
the OleDb connection. So similarly i guess what you are saying is that
we can create a table in excel and populate it with data.

But it would be great if you can give me some sample code.

Also, I guess its not possible to introduce certain formatting
attributes like font size, weight or colors using this method, right?
since we would like to set formatting as well.

thanks,
gautam

Nov 10 '06 #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...
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...
3
by: Jon Brookins | last post by:
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. ...
5
by: Igor | last post by:
Hi everyone! I have a question about exporting data to Microsoft Excel. I am writing program in C# and have to export some data to excel workbook. It works very good using OLE technology, but...
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
9
by: John Bailo | last post by:
I want to generate an Excel file (.xls format) from some database data. I don't want to use Excel.exe because of all the automation and security issues. Does Microsoft document the .xls file...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have a question for you. I have a .csv file which has many lines of data. Each line has many data fields which are delimited by ",". Now I need to extract part of data from this...
0
by: =?ISO-8859-1?Q?J=F6rg_Battermann?= | last post by:
Hello there, Is there any -reliable- way to extract certain, given ranges in excel files into either a picture (each) or into proper xhtml? I am asking because I am currently automating a...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.