Hi ! We have some strange behavior of WebBrowse control in VB6 when open Word/Excel document. There is Office 2007 installed on our computer. We have to open Word and Excel documents inside of our application in WebBrowse control. Everything works well except the document has been opened not inside of our application WebBrowse control, but in new window of Word or Excel 2007 application. This problem occurs both in design (debugging) and runtime. There is no problem for such behavior if we use Office2003/XP/2000 instead of Office 2007. To navigate to desired document we are using Navigate2 method with first parameter URL. We tried to set some values for the second Flags parameter, but it did not make any difference. Does someone know what the problem is? Thanks! Igor.
This is a design change. For more information, see A new window opens when you try to view a 2007 Microsoft Office program document in Windows Internet Explorer 7(http://support.microsoft.com/kb/927009/) -- Sheng Jiang Microsoft MVP in VC++ "Igor" wrote in message news:A35EAE23-49CF-448D-83EE-6A52A280301B@microsoft.com... > Hi ! > > We have some strange behavior of WebBrowse control in VB6 when open > Word/Excel document. > > There is Office 2007 installed on our computer. We have to open Word and > Excel documents inside of our application in WebBrowse control. > > Everything works well except the document has been opened not inside of our > application WebBrowse control, but in new window of Word or Excel 2007 > application. > > This problem occurs both in design (debugging) and runtime. > > There is no problem for such behavior if we use Office2003/XP/2000 instead > of Office 2007. > > To navigate to desired document we are using Navigate2 method with first > parameter URL. We tried to set some values for the second Flags parameter, > but it did not make any difference. > > Does someone know what the problem is? > > Thanks! > > Igor.
Thank you very much!!! We tested and it works fine! "Sheng Jiang[MVP]" wrote: > This is a design change. For more information, see A new window opens when > you try to view a 2007 Microsoft Office program document in Windows Internet > Explorer 7(http://support.microsoft.com/kb/927009/) > > -- > Sheng Jiang > Microsoft MVP in VC++ > "Igor" wrote in message > news:A35EAE23-49CF-448D-83EE-6A52A280301B@microsoft.com... > > Hi ! > > > > We have some strange behavior of WebBrowse control in VB6 when open > > Word/Excel document. > > > > There is Office 2007 installed on our computer. We have to open Word and > > Excel documents inside of our application in WebBrowse control. > > > > Everything works well except the document has been opened not inside of > our > > application WebBrowse control, but in new window of Word or Excel 2007 > > application. > > > > This problem occurs both in design (debugging) and runtime. > > > > There is no problem for such behavior if we use Office2003/XP/2000 instead > > of Office 2007. > > > > To navigate to desired document we are using Navigate2 method with first > > parameter URL. We tried to set some values for the second Flags parameter, > > but it did not make any difference. > > > > Does someone know what the problem is? > > > > Thanks! > > > > Igor. > > >