Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2004, 02:06 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ole Control ScrollBars Samikaraeen Pro VB 6 0 September 4th, 2006 05:10 AM
How to control ole object programmatically uticket Crystal Reports 0 November 16th, 2004 12:35 PM
Basic Control Structure Colonel Angus SQL Server 2000 4 May 25th, 2004 10:17 AM
OLE object in table and Form control bleitner Access 3 November 21st, 2003 01:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.