CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    How can export data from CListCtrl to excel?

    Hi all,

    i want to export data from CListCtrl to excel file.

    please tell me how can i do this.

    thanks in advance.
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How can export data from CListCtrl to excel?

    By hands!
    Read every item wit subitems from a control and then put data to the excel sheet (table) using either automation or some of database technologies (opening connection with excel sheet and INSERT data INTO it)
    What exactly is your problem: read data from list control or put it to excel table?
    Victor Nijegorodov

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How can export data from CListCtrl to excel?

    What does the list control have to do with it? Presumably you had the data before you put it in the list control. I'd be asking how to get your data into Excel and not worry about the list control.

    As Victor said, automation or ODBC are two ways to write to Excel.

  4. #4
    Join Date
    Oct 2009
    Posts
    577

    Smile Re: How can export data from CListCtrl to excel?

    you could write .csv textfile from your data and then invoke excel with that .csv.

  5. #5
    Join Date
    Feb 2011
    Posts
    5

    Re: How can export data from CListCtrl to excel?

    I want to introduce one article for you.
    This article shows a method to export data to excel and other format files.
    You can read this article on
    http://www.codeproject.com/KB/cs/Exc...ExportWiz.aspx

  6. #6
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: How can export data from CListCtrl to excel?

    I want to introduce one article for you.
    I want to introduce some logic to you.
    This is a C++ forum, not a .NET forum. Also, spamming old articles isn't really nice to do.
    You can read this too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured