I am working on a project that requires us to have a web browser embedded in our windows application. This is relatively easy to do if you are using the load to bring in an external URL or a URL pointing to temp file. But I wanted to be able to use an XSLT stylesheet and transform some xml into HTML, without saving to a temp file. I found you are able to use the GetBody and change the innerHTML of that element, but you can't change anything above body. (I want to change the inner/outer HTML of the Document.)
I started parsing the html to be displayed using regex and pulling out the script and style elements and putting them into the body. (IE usually allows for this kind of thing) But I am not getting it to work exactly the way I want.
I also tried writing the style using CreateStyleSheet() but it thinks the css I am giving it is a URL instead of code.
If anyone knows of a way to implement write() on the document or an easier way of doing this, please let me know!!
p.s. We are not using the ActiveX control. We are wrapping the COM object in order to get around a bug with the ActiveX control displaying in docking controls.