Creating an Excel file using VB.Net

Just after some help to create an Excel file using VB.Net please. I've had a bit of a hunt around but can't find an exact example of code that I'm after.

I'm new to .Net and VB.Net and wanted to create and save records to an EXCEL file. I can translate from C# if need be.
Thanks for any help.
9/8/2004 5:26:53 AM 91979 articles. 3 followers. Follow

5 Replies

Similar Articles

[PageSpeed] 34

Hi Amelia99,

welcome to the forums.
Which version of Excell do you want to use? The latest version (2003) has xml possibilities and you can download a free SDK at the microsoft site that makes it quite easy to use with 2003. It makes new project templates and one of them is for excell.
Grz, Kris.
Read my blog. Handy Firefox plugins for web developers.

Workaround for non working Mark as answer buttons.
9/8/2004 8:12:09 AM
Would CSV file do the job? It is much easier to create (just a coma separated text file).

Leon Langleyben


9/8/2004 8:13:09 AM
Hi Kris,

Thanks so much for your response. We are using Office 2000. I read about some of the features you mentioned in my trails.
I did end up finding a great KB article that helped me out while I was waiting for my Post but I may need help later.;en-us;306022
What's happening is we have a large Result set (99000+ rows) from an app written in .Net querying ORACLE using the ORACLE Database provider. Presently, it is being put into a dataset and then built into an XLS file but since the dataset is cached, it is running out of memory. My idea was to change it to a DataREader and then write to the file using autoflush so it doesn't cache that either. Well, that's the theory - now just trying to find code to do it.
Sorry to go into it all but I HAD to tell someone as I've been thrown on the .Net app that is NOT working and there is noone else to ask questions too.
Thanks again for your time.
9/8/2004 9:42:14 PM
Hi Leon,

I think you may be exactly right on this one after I was hunting around a bit more.
I found the below article (don't know how I missed it before) which talks about different strategies. We currently open an EXCEL window to display the results of our reports in our Web app. As far as I an work out about the .NEt app so far is it is creating a text file with xls extension and using javascript to open streaming to browser with a different header so it's xls? I could be wrong. Really just muddling my way through at the moment. I think I need to consider flushing out each line as I write it for my "bigger" issue (see reply post above);en-us;306022
Thanks so much for your time and effort replying. It's great to know that there is help out there. Hopefully when I get a bit more knowledgeable, I can help someone out some day.
9/8/2004 9:48:53 PM
Hi Amelia,

we all started like newbies once and personally my first posts were only questions. Later on I started to reply to other threads and I still like to do it.
I hope that you may progress steadily.
Grz, Kris.
PS: one little side note, take a look here: view post 98605.
Read my blog. Handy Firefox plugins for web developers.

Workaround for non working Mark as answer buttons.
9/9/2004 6:07:39 AM

Similar Artilces:

Sending SMS using or using or
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

Need tutorial on creating Excel File using VB.NET
I am trying to create a pipe "|" delimited excel file from my VB.NET application. I did a search and didn't find anything very useful. I will create the pipe delimited text string in code. I just need to write each text string into a different row in a spreadsheet. Then create the .xls file. I have done this previously with a .txt file, but from what I have read this is different when creating a .xls file. Does anyone have any good tutorials for this? Thanks.Don't forget to click "Mark as Answer" on the post that helped you.This credits that member, earns you a po...

How to Create .mdb file from Excel file using
Hi all I want to create .mdb file that i have created excel feel from MS jet Database... through code behind Help me in this..  Regards RaviPlease click "mark as answer" if this post helped you. How to create an mdb file programmtically: to import Excel data into it: Regards Mike [MVP - ASP/ASP.NET]My site...

.Net 2.0 Web application using is unable to create object of another dll writen in C# .net 2.0
Hi, I habe created one web application using which is adding reference of dlls written in C# and .net 2.0. But whenever trying to create object of referencing dll, it is throwing error :Object reference does not set to an object. But, locally it is working fine,. In the server i have deployed the .aspx files and dll files in the bin. There were already an web.config in the server which is of .net 1.1. But checked it is retrieving value for that web.config correctly. Should i have to deply any other files and if not what can be the solution for this? Please help. Thanks, So...

How to Create an Excel File from VB.Net
VWD 2008 Express.  Visual Basic. Is it possible to build an Excel workbook from VB code behind an aspx page.  What do I need to do?  Can anyone provide a code sample?  Thanks.Dr. Douglas PruiettGood News Jail & Prison Not knowing your exact needs, this code sample from shows how to export from a Gridview to an Excel file WierMCP/ - where to look first!Please Vote for ASPNet101 - 'Best Community Resource'!Contro...

how to get data from excel using
how to get data from excel using Hi, This article might help: Regards, How can obtain the sheet's list of a Excel document? here u can find the solution for your problem, mark if as answer if u problem got solved  Vyas ...

Close Excel file using VB.NET
Hi all, I need an urgent help here. I have a excel file which protected by a password, and the excel file itself already have closing code in ThisWorkbook. I need to use VB.NET to read this file, I read successfully open this file using the Workbooks.Open function and pass in the password. But whenever I want to close this excel file, it will run a dialog box. Is there any possible way to tell the dialog box "yes" or "no" using coding in .NET? I will put the closing code and my .NET code here. ================================================...

how can i Get OCX File in .net IDE
hi all,      How can I generate OCX file in 2005 that will interact in web pages...?Thanks & Regards,Murthy. Hi murthysrn, As far as I know, VB 2005 and C# 2005 cannot create the project for ocx file. However, I hope the following link will be helpful to you. Creating an ActiveX Control in Visual Studio 2005,Benson YuMicrosoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other co...

used a to converter and am now getting a syntax error.
ok I used a cool utility at to convert some to and it spit out a bunch of code which almost works but I am getting a syntax error on this line Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream()) I tried it that way and also like Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream()) but either way gave the same error Compiler Error Message: BC30035: Syntax error. Source Error: Line 26: Line ...

use VB.NET and C#.NET code in the same C#.NET project
All-- Here is a sample that is "off the beaten path", (at least for me). Is it possible, in an ASP.NET application, using the code-behind page building technique, to have both pages written in VB.NET and pages written C#.NET?At there is a sample that shows that, (contrary to popular belief), it IS possible to mix ASP.NET pages built with C#.NET with ASP.NET pages built with VB.NET in the same VS.NET 2003 project. Note that this is just a "fun" sample to see if it can be done and I do not recommend this practice as a "standard" way of develo...

Export GridView as an Excel file using VB.NET
Hi I thought this topic would have been covered to death in Google, but I can't seem to find a simple solution for VB.NET 2.0 (found loads for C#!).  I'm using a simple gridView with an SqlDataSource, and would like a button that when clicked, creates an Excel file which the user can save. Can anyone point me in the right direction? Much appreciatedRichard You can purchase one of many components that will provide this featureYou can write code that will output the file as a CSV file with the .xsl extension then provide a link to the file for download.Or, you can write...

getting and modifying file properties using
i want my application to retrieve the information from the file`s property window as to when was the file created and when was it modified.... i also want to change these properties  how can i do that using visual basic 2005 classes ????? can some one help??? thanks in advanceaman Use the FileInfo class.Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you!...

Trying to create a FIle Upload page using
Can someone give me some advise on what I may be doing wrong in creating the file upload below. I'm trying to create a file upload page for a site that I'm developing, and whenever I click the  "Upload Image Button" nothing happens....the image that I'm trying to upload doesn't appear as expected. I have included the VB.NET code below. Thanks  code for uploadfile.aspx.vb Public Class uploadfile1 Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private S...

converting 2003 files to 2005
Hi, i am beginner..i watch videos about made on 2003 when i wrote these codes in 2005 ,it gives there any program which convert the code automatically?   thanks,Thanks,Speranza What videos are you talking about?  There are lots of great, up-to-date ASP.NET Videos on this site for free.Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you! i am talking about videos..Thanks,Speranza Speranza:they made on 2003 when i wrote these codes in 2005 ,it gives there a...

Web resources about - Creating an Excel file using VB.Net -

Londonistan: How Britain is Creating a Terror State Within - Wikipedia, the free encyclopedia
The book encompasses a critique of multiculturalism , alleged weak policing, cultural relativism , and what Phillips calls a 'victim culture'. ...

Facebook’s Matt Kelly Describes Process Of Creating Plugin For WordPress
The plugin for WordPress launched by Facebook in June has been downloaded more than 180,000 times, and Engineer, Developer Relations Matt Kelly ...

Creating Online Ads that Drive Brand Awareness
New research shows how the creative elements of online ads impact brand awareness.

Bug - Creating a Video.Watches Action stopped working - Facebook-Entwickler
Since today executing a POST on a me/video.wacthes endpoints no longer works, it was working around 10 hours ago since then the call always returns ...

Facebook Creating Fourth-Party Privacy Rules for Facebook Connect Widget & Plugin Developers
In a recently-written post on the Facebook Developers Wiki, Facebook had added new rules for information sharing between websites that have implemented ...

The Obama campaign won by creating their own Facebook, with unique features for political campaigns.
... seen as too dangerous to nominate someone who is so thoroughly narcissistic, arrogant and dishonest. The Obama campaign won basically by creating ...

Creating A Great Startup Culture
... with any Bay Area startup these days (ping pong, beer on tap, catered lunches and Macbook Airs) – though these things are, of course, Creating ...

WIRED Creating the Nebula for iPad on the iTunes App Store
Get WIRED Creating the Nebula on the App Store. See screenshots and ratings, and read customer reviews.

Nets of freedom creating mesh networks 03.07.2013 - Flickr - Photo Sharing!
Explore Strelka Institute photo's photos on Flickr. Strelka Institute photo has uploaded 14526 photos to Flickr.

Creating the incorrigible Cartman - YouTube
"South Park" creators Trey Parker and Matt Stone were big fans of "All in the Family," a 1970s CBS sitcom. Perhaps this is why their most incorrigible ...

Resources last updated: 11/22/2015 1:46:01 PM