How To Read A Word File Through Lotus Script

Hi All, I want to read a word file through Lotus Script.

How I will Do that. Please Guide me.

Right Now am writing :- Its read the text file but it is unable to read the word file.

Dim ss As New NotesSession

Dim db As NotesDatabase

Dim bedoc As NotesDocument

Dim fedoc As NotesDocument

Set db=ss.CurrentDatabase

filenum%=Freefile

Close filenum%

filename=“c:\try.txt”

Open filename For Input As #filenum%

Line Input #filenum%,fline$

otype$=Mid$(fline$,1,50)

Print “”

Subject: How To Read A Word File Through Lotus Script

probably the best way is to use OLE automation to open the document and then get the text that way.

Subject: How To Read A Word File Through Lotus Script

Have you tried looking at a Word file in Notepad? Not much info you understand there, is there? The same for LotusScript. It can read Word files, but it is not useable. If you want to actually read TEXT from a Word document, you have to have MS Word installed, and do some OLE calls. Look at:http://www-10.lotus.com/ldd/46dom.nsf/0/f89dd599ebe64ff485256936004f16b7?OpenDocument

http://www-10.lotus.com/ldd/today.nsf/0/7d432c8317c276c8852566eb00695f28?OpenDocument

  • Johan

johan@kanngard.net

http://dev.kanngard.net