Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I have a VB.Net application with items in a listview. My project open an existing document and can create a new word document. What I am trying to do is when I double click on an item in the listview I want to insert that item to the word document where the current cursor is at. Any help would be appreciated or point me to the right direction :-)
Posted

Don't worry I found the solution, I just used:
objWordApp.Selection.TypeText(strAlias)
 
Share this answer
 
You can probably use a range to insert into an existing Word document.
See this[^] for more help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900