Visuabl Basic and OLE Control
Hi Everyone,
I am facing a strange problem...
I am using OLE Control in Visual Basic and embedding word document in it for some purpose.
If I dont embedd any document, it works fine. For example if I take an OLE Control, and Insert Microsft Word document from Insert Object dialog, it works absolutely fine.
But if insted of inserting object from that dialog..., if I write a piece of code like this:
'''''''''''''''''''''''''''''''''''''''''''''''''' ''''
ole1.createembedd "c:\template.doc", "word.document.8"
'''''''''''''''''''''''''''''''''''''''''''''''''' ''''
The problem starts. The problem is when OLE control is in edit mode, text is visible, I can also change it, but the moment the OLE control loses focus, the text goes invisible. If I doubel click again, the text gets visible, and I can change the text again, but the moment I click outside, the text gets invisible.
Alos, this is not happening on all machines, It is working fine on few machines.
Please suggest something.
Regards
Ankur Kashyap
|