|
-
March 30th, 2009, 03:15 AM
#1
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
-
March 30th, 2009, 03:36 AM
#2
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
-
March 30th, 2009, 03:37 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|