PRB: Document Jumps to Top When You Edit With an OleBoundControl (265104)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q265104 SYMPTOMS
When you use an OleBoundControl to edit a Microsoft Word document that is stored in a General field, the active area may jump to the top of the document. After you scroll down in the document and make changes, the control flashes and the active area jumps to the top of the document. The amount of time varies for this to take place, but it generally happens within 5-55 seconds. Even though the document is at the top, the cursor remains at the position you were editing.
RESOLUTION
Here are two ways you can work around this problem:
- Set the AutoSize property of the OleBoundBontrol to True.
- Instead of using the DoVerb method with DoVerb(-1) to allow you to edit the document in Visual FoxPro, use DoVerb(-2). Using DoVerb(-2) opens Microsoft Word in which you can edit the document.
REFERENCES
(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Mark Barnard, Microsoft Corporation.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbAutomation kbBug kbCodeSnippet kbCtrl kbinterop kbprb KB265104 |
---|
|