
????? Need help on a VB/MSWord problem. Can't solve it. Any Experts
* Original Area: comp.lang.basic.visual.3rdparty
* Original To : RISC (1:0/0)
-=> Quoting RISC to All <=-
RR> Have a text file with a .prn extension. Using an OLE object
RR> and a minimal amount of code I can open the file into MSWord. Problem
You mean something like:
dim w as object
set w=createobject("word.basic")
w.fileopen "c:\mypath\myfile.prn"
w.fileopen "c:\mypath\myotherfile.prn"
w.fileopen "c:\mypath\athirdfile.prn"
And so forth?
w.DoDomeOtherWordbasicCode
set w=nothing
I can't see how else you'd be doing it, since any other way wouldn't make
sense.
RR> is that when I want to open several of these .prn files at the same
RR> time I get a new session of Word for each file. System resources get
And since I am assuming you're doing the aforementioned code, then this
can't possibly be happening. Try it and see how it works.
... Malek's Law: Any simple idea will be worded in the most complicated wa
--
| via Tangent BBS +1-617/364-1576 28.8k or Telnet to vader.com
| Standard disclaimer: The views of this user are strictly his problem.