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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB - WORD : Insert OLEObject opens file...

Status
Not open for further replies.

Lemox

Programmer
Dec 13, 2003
67
GB
Hello,

I use MS Word as a Reporting Tool : my reports can contain embedded files (.doc, .pdf, .txt,...) displayed as icons in the document.
I insert a file like that :
Code:
Word.Selection.InlineShapes.AddOLEObject FileName:= sFileName, DisplayAsIcon:=True, IconLabel:=sDispName, LinkToFile:=False
Everything was going fine while I was working on a pc with Win2k and MS Office 2k.
Currently, I use a new pc with WinXP Pro and MS Office 2003.
And when I display the Word Application, .doc and .pdf files are automatically open in their own Word Document !

Can someone tell me why ?
Any turnaround ?

Thanks in advance,
Lemox

PS: VB 6.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top