4 Replies - 4854 Views - Last Post: 05 January 2012 - 02:33 AM Rate Topic: -----

#1 nivarshn  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Open word doc inside webBrowser control on Win7 machine

Posted 04 January 2012 - 04:10 AM

My application is in VB.NET and environment is Window XP. We are using WebBrowser control to display data of Word doc files i.e. we are opening word files always inside the WebBrowser control and then modifying word file using bookmarks by VB code.Our VB code is perfectly working. We are doing following changes in window registry via VB.NET code for temporary basis:
1)..HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.document.8\

updating BrowserFlags value to H80000024
2)..HKEY_CLASSES_ROOT\Word.document.8\

updating EditFlags value to 65536
3)..HKEY_CLASSES_ROOT\Word.Template.8\

updating EditFlags value to 65536
4)..HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.document.12\

updating BrowserFlags value to H80000024
5)..HKEY_CLASSES_ROOT\Word.document.12\

updating EditFlags value to 65536
6)..HKEY_CLASSES_ROOT\Word.Template.12\

updating EditFlags value to 65536

Now we are migrating environment from WinXP to Win7. I have following query for Win7 environment :
We do not have rights to change registry on Win7 machine , so without changing values of BrowserFlags and EditFlags , how word docs files will always open inside webBrowser control on win7 machine? Currently I am getting below popup dialog box(Open/Save/Cancel) for word doc on win7 machine while running application:


I want to avoid it.Please help me to find the solution.

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: Open word doc inside webBrowser control on Win7 machine

#2 _HAWK_  Icon User is online

  • Master(Of Foo)
  • member icon

Reputation: 957
  • View blog
  • Posts: 3,684
  • Joined: 02-July 08

Re: Open word doc inside webBrowser control on Win7 machine

Posted 04 January 2012 - 07:32 AM

If your using word automation you would set the DisplayAlerts to false.
Was This Post Helpful? 0
  • +
  • -

#3 nivarshn  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Re: Open word doc inside webBrowser control on Win7 machine

Posted 04 January 2012 - 07:54 AM

View Post_HAWK_, on 04 January 2012 - 07:32 AM, said:

If your using word automation you would set the DisplayAlerts to false.


but still it will not resolve my main problem because I have no rights to change registry on Win7 machine.so word doc will not open inside webBrowser control.word doc is opening outside of it.
Was This Post Helpful? 0
  • +
  • -

#4 _HAWK_  Icon User is online

  • Master(Of Foo)
  • member icon

Reputation: 957
  • View blog
  • Posts: 3,684
  • Joined: 02-July 08

Re: Open word doc inside webBrowser control on Win7 machine

Posted 04 January 2012 - 12:05 PM

You might want to get out of the registry and use a diff approach.
Was This Post Helpful? 0
  • +
  • -

#5 nivarshn  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-January 12

Re: Open word doc inside webBrowser control on Win7 machine

Posted 05 January 2012 - 02:33 AM

View Post_HAWK_, on 04 January 2012 - 12:05 PM, said:

You might want to get out of the registry and use a diff approach.


I want to know the new approach.How to open word doc inside webBrowser control on Win7 machine if do not have rights to do registry change ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1