August 2004 - Posts

Working with IHTMLDocument2...

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. 

Clean build with Windows XP SP2

I always use XPCreate to a Windows XP CD/DVD with all the drivers/software/settings that I like so that when (not if) I rebuild my machine, I always have the latest service packs and hotfixes slipstreamed into my DVD.

However, when I recently tested Windows XP with Service Pack 2 slipstreamed into it, I noticed that Internet Explorer (IE) was not showing up.  The only way to get it to show up was to go to that stupid "Set Program Access and Defaults" button on the Start Menu and change the option from "Custom" to "Microsoft".

My question for others familier with the unattended build process:  How do I change the defaults from custom back to Microsoft.  I haven't found any settings in Winnt.sif to allow this change.

Any ideas??

 

Posted by dotnetboy2003 | with no comments

Back again...

I haven't been posting like I've wanted to but I am going to make a new effort to post more.  We'll see.

Oh, BTW, this is a BlogJet test as well.  If all goes well, I will buy this tool, as it makes it very easy to post images.

Posted by dotnetboy2003 | with no comments
More Posts