Is there a way to append CSV file using CSVWriter?

21 views
Skip to first unread message

heartland

unread,
Dec 7, 2007, 12:43:39 PM12/7/07
to CSVChat
Hi Shriop,

I wonder if it is possible to do so. I want:
1. To open a new CSV writer in a form_load event.
2. Append a line of record to the file each time the user clicks a
button.
3. Close the file when form closing.

Thank you very much and I use VB.NET

Hugh

shriop

unread,
Dec 7, 2007, 2:57:13 PM12/7/07
to CSVChat
That shouldn't be a problem, just have the CsvWriter object be a
member variable of your form class. Assigns it's value by opening the
file in the Load event, and call Close in the Close event.

Bruce Dunwiddie

Lu, Hugh

unread,
Dec 7, 2007, 3:56:46 PM12/7/07
to CSV...@googlegroups.com
Hi Bruce,

Thanks for your reply. Am I missing something? The form stays open and
a row will be appended to the file each time user clicks the button. Can
you provide a few lines of code? Thanks


Hugh
Lab Automation Systems Group
Research Information Management
x4232
Building # 36

Bruce Dunwiddie

This communication is for use by the intended recipient and contains
information that may be Privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender by
return e-mail and delete this e-mail from your system. Unless explicitly
and conspicuously designated as "E-Contract Intended", this e-mail does
not constitute a contract offer, a contract amendment, or an acceptance
of a contract offer. This e-mail does not constitute a consent to the
use of sender's contact information for direct marketing purposes or for
transfers of data to third parties.

Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean

http://www.DuPont.com/corp/email_disclaimer.html

Lu, Hugh

unread,
Dec 7, 2007, 4:08:20 PM12/7/07
to CSV...@googlegroups.com
Hi, Bruce,

Never mind. It works. Thanks again.

Hugh
Lab Automation Systems Group
Research Information Management
x4232
Building # 36

-----Original Message-----
From: CSV...@googlegroups.com [mailto:CSV...@googlegroups.com] On
Behalf Of shriop
Sent: Friday, December 07, 2007 1:57 PM
To: CSVChat
Subject: [CSVChat] Re: Is there a way to append CSV file using
CSVWriter?

Bruce Dunwiddie

This communication is for use by the intended recipient and contains

Reply all
Reply to author
Forward
0 new messages