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

    Read diffrent formats file in MFC.

    Hi all,

    i want to read diffrents formats(like: txt,doc,xls,csv,pdf etc) file,and inserts these values in ListCtrl of dialog box.

    please tell me how can i do this.

    please help me for this.

    if possible please explain me with example.

    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 offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Read diffrent formats file in MFC.

    To read .txt and .csv files you could use CStdioFile class.
    To read .doc (MS Word) file you should use Word Automation.
    To read .xls and .csv (MS Excel) files - Excel Automation.

    I never needed to read .pdf files myself, so don't know how to do it. Use Google to get some appropriate information about it.
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2005
    Location
    Pune (India)
    Posts
    644

    Thumbs up Re: Read diffrent formats file in MFC.

    Hi,

    go through this link here you will find file formats of your interests.

    http://en.wikipedia.org/wiki/List_of_file_formats

    according to file format read bytes from the file and store the information in listbox.


    -Anant
    "Devise the simplest possible solution that solves the problems"

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