Link to home
Start Free TrialLog in
Avatar of talsp
talsp

asked on

list control to a word file

hi,

i have a listcontrol showing a table.

how i can transfer the text in it to a word file?

i want to take the table in this list control and make the same table in a Word file and than save the file.

thanks.
Avatar of skibud2
skibud2

You can use a combination of the List Control's GetItemText and use automation with Word.
Go to project->Add to project->Component and Controls->Microsoft Word (x.x)
Avatar of talsp

ASKER

i am using vs.net and there is no such option there
Avatar of talsp

ASKER

ok i found the way how to automate this enviroment
Avatar of DanRollins
I am interested to know how you did it.  Can you summarize?
-- Dan
Avatar of talsp

ASKER

i've added an mfc class from typelib and than chose the msword library.
and than added all the header files for the function i wanted to use and made the automation.
Thanks talsp,
This question and your solution have value for the EE PAQ database.  I suggest that you make a post to Community Support and say that you solved this problem yourself and request a refund of your points.  Ask that this be saved as a 0-pt PAQ.  Click here
      https://www.experts-exchange.com/jsp/qAskQuestion.jsp?ta=commspt
to post to CS.  Be sure to identify this question.  it is:  
      Q_20323039
-- Dan
Avatar of talsp

ASKER

thanks a lot Dan,
i did what u advised me.

talsp.
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial