473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADOX in VB.NET to create Excel file

Hello,

I have a VB 6 app that creates Excel files to export data that works
fine. When I ported it to VB.NET it creates the file, but seems to
finish writing the data and releasing the file only after a random
length period of time. If I use the code in the discussion "ADOX in
Office XP??" I get the same result. My code is very similar to that.
Some programming languages have a method to flush the output buffer
and close the file, but I don't see a way to do that in VB.

If I continue running the .NET app it does release the file
eventually, which makes me wonder if it has something to do with
garbage collection, but that is just a guess.
Any ideas?

Thanks
Feb 17 '08 #1
0 1649

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

Similar topics

2
5553
by: Developer98115 | last post by:
I need help getting schema information from an existing SQL Server database. My thought was that you could use ADOX via InterOp. Has anyone done this successfully and how? I have created a Interop reference to the ADOX COM component from my C# project. I am able to open the SqlConnection successfully but it fails with an exception when I...
3
10155
by: KemperR | last post by:
Hello Experts outhere, may be someone can tell me whats going wrong with my ADOX trial. I have an Access 2002 database with some tables and queries (views) The code listed below works well up to the point where I want to add the new view to the views collection. I get Runtime error 3001 which is telling me "Arguments are of wrong...
3
7652
by: VMI | last post by:
I'm creating an Access file with the following code, but won't let me erase it after creating it. How can I close the file immediately after creating it? ADOX.CatalogClass cat = new ADOX.CatalogClass(); cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + sFileName + ";" + "Jet OLEDB:Engine Type=5"); cat=null; // Does NOT...
4
1508
by: Phil | last post by:
Hello I've been looking at information at the following link: http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;Q303814 and have tried the following in a VB.net application: Dim cat As ADOX.Catalog cat = New ADOX.Catalog
3
1700
by: gaffar | last post by:
Sir, Using ADOX I am developing an application in vb.net and the backend database is ms-access. i have created ms-access databse and tables and assigned primary keys to the tables through the vb.net application(code is below) by using ADOX. Now my problem is i want delete one record from master table, that deleted record automatically...
1
11567
by: Hexman | last post by:
I'm creating a new Access table using ADOX. I can add columns and indexes, but I'm baffled on how to change field properties. Can someone give me a hand? Want to change properties such as: Description (Column property?), Decimal Places, Caption, Default value, Required indicator, Format, etc.... TIA,
1
3331
by: racquetballguy | last post by:
Hi I have data tables in the form of 200612... 200701... 200702... etc The user specifies the start date and end date in an input form ie: 12/25/2006 - 1/10/2007.
2
2630
by: mazelx | last post by:
Hi, I'm a bit confused with all the types of connections (odbc, oledb, adox, etc...) I'm making an application which imports the data from an excel file to a table into MS Access. I decided to connect directly the excel file with a linked Access table (through adox), and make all my queries to the database. No need to store the data in a...
7
2533
by: The Mad Ape | last post by:
When I use the code below to create an mdb (access database) I am unable to release it and the locking file remains persistent. For my app this is bad if the user tries to delete the mdb later on. Has anyone encountered this scenario? Is this a bug? I am using VB.Net 2005. Is there any way to get out of this jam? Currently my app will only...
0
7693
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...
1
7665
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...
0
7962
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...
0
6277
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...
1
5501
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...
0
5217
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...
0
3651
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...
1
2105
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
1
1207
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.