473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

CSV Files & DataObject class

I need to import and export CSV files. Before I head off the create my
own CSV parser (got the link to Falafel's articles), is there a way to
use the DataObject class in this process? I don't want to waste time
figuring out what it does if it's really not going to help. It sounds
like (from the docs and from my search out here) that it's really meant
for drag & drop, clipboard, in-memory type transfers rather than from
CSV file to database. On the other hand, it does support the CSV
format. If somebody can just point me in the right direction, I'd
appreciate it.

sandman

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
1 1970
Max,

The DataObject class is not going to assist in this case, because it is
used for clipboard data, and does not provide transformation services of any
sort.

If you want to use comma-delimited values, then you will have to use a
third-party product, or you will have to roll your own. However, I believe
that someone MUST have done this already, so you shouldn't have problems
finding one.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com

"Max Sandman" <sa*********@yahoo.com> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
I need to import and export CSV files. Before I head off the create my
own CSV parser (got the link to Falafel's articles), is there a way to
use the DataObject class in this process? I don't want to waste time
figuring out what it does if it's really not going to help. It sounds
like (from the docs and from my search out here) that it's really meant
for drag & drop, clipboard, in-memory type transfers rather than from
CSV file to database. On the other hand, it does support the CSV
format. If somebody can just point me in the right direction, I'd
appreciate it.

sandman

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #2

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

Similar topics

0
by: Christian Decker | last post by:
Hi, I'm pretty new to Object Oriented design in PHP (although I'm using PHP since a long time, and I also code with Java, so this is not a problem for me) and I need some help with...
0
by: New World Order Pigs | last post by:
I am trying to use dataobjects class to convert rtf to html and back to rtf again and I can't get it to work. Below is the code... IDataObject data = new DataObject();...
1
by: Jinlin | last post by:
Does anyone know how to serialize a dataObject. Is it possible? What I try to do in my application is to allow user drag and drop objects onto a toolbox type of thing, and try to preserve these...
0
by: Norbert | last post by:
Hi 1) Can DataObject hold any object ,example: dim a as myclass obj.DoDragDrop(a, DragDropEffects.Copy) if yes then tell me how to retrive this data from a DataObject 2)When I initialize the...
5
by: DraguVaso | last post by:
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in...
7
by: **Developer** | last post by:
Although the code is VB I believe the question is OOP I tried the VB NG but no answer. I suspect the c# programmer is more apt to be aware of these kinds of subtleties so I', trying here. I do...
4
by: Bob Staheli | last post by:
The .Net DataObject class implements the COM/OLE IDataObject interface , so how do I get it. I have tried this, but it does not work : // Declare the COM/OLE IDataObject interface public...
1
by: =?Utf-8?B?VnUtTG9jIE5ndXllbg==?= | last post by:
The history: I have a C# form that must accept files "drag and drop" including Outlook messages .msg. In order to support Outlook .msg file drop, I must use Ole32 (regular .net drag and drop...
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.