doc file

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
Hrcko,
Assuming that in this context "doc" means a Microsoft Word document file,
no, as Word documents are stored in a binary format. You would either need to
convert the file and save it as text (using Word, for example) or use the
Word Object Model to load and read the document and get the text that way.
Peter
 
Is there a way to read a .doc file text into a listBox?

As Peter says, you can't do it directly. You could create a
Microsoft.Office.Interop.Word.Application instance, and then use
Documents.Open(...) to load up your file and read from it
programmatically; this however requires the end user to have a recent
version of Word installed and is rather heavy on resources.
 
Hi,


Hrvoje Voda said:
Is there a way to read a .doc file text into a listBox?

You need to provide more details , a .doc file is more suitable to a
Textbox than to a listbox
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

listbox search 1
sort string 10
sum 4
array list 15
remove from listBox 3
remove selected item 1
list box fill 3
pdf files 1

Back
Top