Problem linking stylesheet to embedded MSHTML in Windows 8 CP

Unanswered Problem linking stylesheet to embedded MSHTML in Windows 8 CP

  • terça-feira, 3 de abril de 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

Todas as Respostas

  • quarta-feira, 4 de abril de 2012 07:37
     
     
    There is no public document for IE10, so we don't know any change of it.

    NEU_ShieldEdge

  • segunda-feira, 21 de maio de 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

  • segunda-feira, 21 de maio de 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

  • segunda-feira, 29 de outubro de 2012 15:07
     
     
    I 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.