Board index » delphi » Control '' has no parent window
Daniel B
![]() Delphi Developer |
Fri, 16 May 2003 03:00:00 GMT
Control '' has no parent window
Hi all,
I am having trouble loading a Word document by filename into an OLE type After creating TThing I create TheThing like this: TheThing := TOleContainer.Create(Self); And later on: TheThing.CreateObjectFromFile('C:\Microsoft Trying to execute this produces the following error message: Control 'NormalTemplate' has no parent window. I have tried the CreateParented method and setting the ParentWindow Set thisDoc = GetObject(fileName) Word loads the document, but does not show it, and I can do normal Daniel |