Colin Towers wrote in a message to Fred Burgess:
CT> If V.EditFindFound then V.Delete;
CT> V.Insert(Nicelyformattedtext);
CT> V.Print;
CT> V:=Unassigned;
CT> End.
CT> Then create the template in Word, save it under that name --
CT> you won't even see Word when you do this, so it looks like
CT> your own sheer genius :)
CT> I think I've got the OLE commands correct for Word, but I
CT> could be wrong. Check the manuals if it doesn't work!
I've been watching this thread with some interest and hove gone ahead and
incorporated your ideas in my own program. I am not using word though, but
using Quattro Pro from the Corel Suite 8. The suite comes with OLE Code
inserter. It supports Presetations, Quattro Pro, WordPerfect and Delphi. I
expected the first three, the fourth was a rather pleasant surprise. Anyway,
I use Quattro to receive my data from my program and then to print. Only
Qualm I have is the fact that when the CreateOLEObject function is called it
forces Quattro to display its splash screen and then 'show' itself. I have
right after that call a command to minimize Quattro, but would rather not se
any part of Quattro loading. I'm going to move onto trying to perform the
same task using an OLEContainer in Delphi. If you have any ideas on how I
might solve my problem please let me know.
Thanks,
Ryan Potts (rpotts@ald.net)
---
---------------
* Origin: Midnight Express, Fairlawn Ohio (1:157/110)
|