On Tue, 1 Oct 2002, Mohammed Khatib wrote: > I need to develop some modules to parse and provide useful > information about RTF documents. All I need to do at the > moment is extract titles names, the number of pages of each > RTF, and obtain summaries which have specific Word level > styles applied. I've had a look at Win32::OLE, but I just > couldn't get passed opening a Word document. Is there a book > out there for Win32::OLE? I know there's an O'rielly book > called "Programming Word" - I might invest in that. But I > still want to buy a Perl book about Win32::OLE.
The fundamentals in programming Word or Excel are not horrible complicated. You can easily create an OLE-session and open Word. But the problems begin now. You do not programm Perl anymore. You are doing Word-programming. I found a pretty good approach in this way: Opening word and doing some things recorded by the macrorecorder. Stopping the recorder and pressing Alt-F11 (german Winword, should work everywhere). Winword was creating a VBA-subroutine which includes everything I did. I copy the code to mz perlprogramm and change it the way it works there. Because I am very limited in my abilities to create documents, I usually have to create reports and mass-letters, I create a template-document in Word which includes nearly the most work, especially tables, graphics etc. After loading this document I usually have to replace only variables in Winword/VBA ($ADDRESSNAME$ -> Mr. Lippmann) I am looking forward for the OReilly-book mentioned. I hope it is helpfull for this tasks. A word-library wood be good but I am not sure wether it is a good idea to do that because there are millions of things to do in word. But please mail me if you are interested in that, I am interested to program a thing like that. Greetings from Bavaria, Richard _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
