Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to load DOC from memorystream

Status
Not open for further replies.

topcat01

Programmer
Jul 10, 2003
83
GB
Hi,

I'm using D6, Win2k.

I want to open a MS Word document for viewing - the file is stored in a memorystream. Is there an OLE command or LoadFromStream option available in Delphi? Thanks in advance!
 
Why is the file stored in a memorystream? Can you open it in MSWord?

Typically you open word docs by creating a variant
Code:
var 
  WordDoc: variant;
begin
  WordDoc:= CreateOleObject('Word.Application');
  WordDoc.Open(WordFileName);
where WordFileName is a disk filename. (untested)

Roo
Delphi Rules!
 
Hi,

Thanks for the suggestion, I am playing with reading data from compressed files via memory stream only. Just wanted to know if it was possible. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top