Problem linking stylesheet to embedded MSHTML in Windows 8 CP
-
יום שלישי 03 אפריל 2012 02:49
I have an application which uses an embedded MSHTML browser control.
I use the IHTMLDocument2.CreateStyleSheet function to link a CSS file to the document.
This works in Window XP to Windows 7, but in Windows 8 I get an out of memory exception from CreateStyleSheet.
As a workaround, I used CreateElement to create a link element and append it to the Head element.
This code runs but the stylesheet is not applied. The workaround code correctly applies the stylesheet in Windows 7.
Any suggestions?
TIm
כל התגובות
-
יום רביעי 04 אפריל 2012 07:37There is no public document for IE10, so we don't know any change of it.
NEU_ShieldEdge
-
יום שני 21 מאי 2012 08:18
Hi Tim,
Did you find a way to solve the above problem. I am also facing a similar problem using webbrowser control where I am not able to link external stylesheet.
Thanks
Kamal
-
יום שני 21 מאי 2012 08:23
Hi Kamal
I reported it as a bug and received the reply "won't fix".
If it is an issue for you I suggest you also report it.
Tim
-
יום שני 29 אוקטובר 2012 15:07I have the exact same issue too. Apparently, it is not the only issue i have. I have two applications depending on DHTML editor and MSHTML and both which worked fine on Windows 7 miserably fail to do the job under Windows 8.