|
-
Oct 11th, 2005, 01:43 AM
#1
Thread Starter
PowerPoster
BUG: Cannot edit Word document in OLE or WebBrowser control
Please follow this link and have a look
They are suggesting following workaround.
A workaround for this problem is to activate the Word document in its own Window, rather than using in-place activation. To accomplish this, set the MiscFlags property of the OLE control to
vbOLEMiscFlagDisableInPlace, or 2. For example: OLE1.MiscFlags = vbOLEMiscFlagDisableInPlace
Now when you double-click the OLE control, the Word document is activated in its own window inside Microsoft Word. To programmatically activate the Word document in its own window, use the DoVerb method as follows:
OLE1.DoVerb vbOLEOpen
But there is no MiscFlags property or DoVerb method for WebBrowser control. How to implement this workaround for WebBrowser control.
Last edited by Deepak Sakpal; Oct 18th, 2005 at 02:37 AM.
-
Oct 11th, 2005, 09:03 AM
#2
Thread Starter
PowerPoster
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
-
Oct 11th, 2005, 09:05 AM
#3
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
what about trying to load it directly into word?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 11th, 2005, 09:17 AM
#4
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
strange.. when I just tried opening a doc in the webbrowser control I could edit it no problem?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 11th, 2005, 09:17 AM
#5
Thread Starter
PowerPoster
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
Actually i am developing an application where i load word file in webbrowser control and manage from there. But i am now facing this problem.
-
Oct 11th, 2005, 09:23 AM
#6
Thread Starter
PowerPoster
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
 Originally Posted by [A51g]Static
strange.. when I just tried opening a doc in the webbrowser control I could edit it no problem?
Load a file in webbrowser control then start word and get back to webbrowser control. you cannot edit the document or there right click menu will be disabled.
-
Oct 11th, 2005, 09:29 AM
#7
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
i dont get a right click to start.. but doc is still editable?
I would still suggest using word.. then u can have full control
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 11th, 2005, 09:44 AM
#8
Thread Starter
PowerPoster
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
Actually you can edit the document in webbrowser control while another instance of word is running but you don't get the right click menu that shows cut,copy,paste,spelling/grammar suggestions etc. That is where i am stuck on.
-
Oct 11th, 2005, 09:52 AM
#9
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
ahhh... gotcha. sorry.. ive never run into this.. so im not sure what the issue might be.
but, why not just load it in word itself?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 12th, 2005, 11:48 PM
#10
Thread Starter
PowerPoster
Re: BUG: Cannot edit Word document in OLE or WebBrowser control
In my app I am doing stuff that MS Word don't provides. I know VBA is also the way but the app i developing is going to be deployed on 150+ machine and u know we cannot provide autoupdate feature here. And another reason why i am not going for vba is the app was already developed and i am developing it furthur.
-
Oct 18th, 2005, 02:36 AM
#11
Thread Starter
PowerPoster
Finally... I got the way to go :)
VB Code:
Dim temp As Word.Application
'Test if object is already created before calling CreateObject:
If TypeName(wrdApp) <> "Application" Then
temp = CreateObject("Word.Application")
' wrdApp is declared below Windows Froms designer generated code
' dim wrdApp As Word.Application
wrdApp = CreateObject("Word.Application")
temp.Quit()
temp = Nothing
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|