CSV Files & DataObject class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max Sandman

    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!
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: CSV Files & DataObject class

    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)paldin o=at=exisconsul ting<dot>com

    "Max Sandman" <sandman_max@ya hoo.com> wrote in message
    news:OB2mBLnjDH A.1284@TK2MSFTN GP09.phx.gbl...[color=blue]
    > 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![/color]


    Comment

    Working...