Change Word document in WebControl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi !

I have a problem with WebControl

I opened Microsoft Word document not directly, but in Visual Basic 6.0
WebBrowser control.
When I selected with Range.Select any text the Saved property of the
document did not change, but when I highlighting even one character with
Range.HighlightColorIndex, I cannot prevent the WebControl from displaying
save message. Undo method also has no effect.
Even if I set oWebControl.Document.Saved = true, the message displayed
anyway and WebControl performs save on Yes button. The same trick works well
if I open Excel document.

How can I force WebControl not to save Word document and not to display save
message ?

Thanks!

Igor.
 
are you using vb 6 webbrowser control because of not having the option of
using PIA from Microsoft office for .net?

if that is not the case, download the redistributable pia for the lowest
version of office being used among your user and access the document
directly that way.

google search: site:microsoft.com office pia

I am using PIA for excel automation in my application
 
Yes, I have to work with VB6, because of all application developed in this
language. Of cause, in .net I use PIA. But unfortunately, it does not help me
in VB6.

Anyway, thanks for you response.
 
Back
Top