Visual Basic 6.0 기능중 웹브라우저 인터넷 컨트롤러(Web Browser) 기능 이용시 호출한 사이트의 IE 버전 호환성으로 인해

제대로 출력이 이루어지지 않는 경우가 있습니다.

 

그럴때 아래와 같은 방법으로 처리해주시면 됩니다.

 

[설정 방법]

1. 레지스트리 편집기(regedit.exe) 에서

 

2. HKEY_CURRENT_USER\SOFTWARE\Microsoft\InternetExplorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION 디렉토리로 이동

 

3. 이름 : 본인프로그램.exe

값 : 원하는 버전 값(10진수)

└> 값 추가 후 프로그램을 실행하면 원하는 IE버전으로 웹브라우저 적용

 

[IE 버전별 추가 값]

11001 (0x2AF9)
Internet Explorer 11. Webpages are displayed in IE11 Standards mode, regardless of the !DOCTYPE directive.

11000 (0x2AF8)
Internet Explorer 11. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.

10001 (0x2AF7)
Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive.

10000 (0x2710)
Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.

9999 (0x270F)
Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the !DOCTYPE directive.

9000 (0x2328)
Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.

8888 (0x22B8)
Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.

8000 (0x1F40)
Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode.

7000 (0x1B58)
Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. This mode is kind of pointless since it's the default.

 

참고 URL : https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version

+ Recent posts