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.
Recent Posts
- Understanding API First Strategy and Benefits
- Frankenstein APIs Explained! - API Cyber Security Series
- API Security 101 - Cyber Security Explained
- API Trends 2022 - API Security and Cybersecurity
- API Trends 2022 - Seamless Integration Solutions
- API Trends 2022 - Adaptive API Management
- API Trends 2022 - API Integration Automation
- API Trends 2022 - Industry Specific Breakouts
- API Trends 2022 - API Best Practices
- API Trends 2022 - Open API Standards
- API Trends 2022 - API Integration Experience
- API Trends 2022 - API-Led Modernization
- API Trends 2022 - API Economy Growth
- Brenton House - Give your App and APIs a Turbo Boost – Part 2
- Easily Enable Speech Recognition in Titanium iOS using Hyperloop
Tag Cloud
- .NET
- adaptive api management
- android
- api
- api automation
- api best practices
- api economy
- api experience
- api first
- api integration
- api integrations
- api management
- api security
- api standards
- api strategy
- api trends
- apis
- appcelerator
- automation
- boot
- Brenton House
- C#
- Cisco VPN
- Cloud
- Community News
- Continuous Integration
- crash
- cybersecurity
- Dropbox
- fhir apis
- Free Stuff
- General Software Development
- Google Drive
- graphql
- healthcare apis
- houserules
- hyperloop
- ios
- json schema
- Live Mesh
- Mac OS X
- Microsoft
- mobile
- mobile api
- native
- open banking
- openapi
- Other Stuff
- SkyDrive
- speech
- Stuff
- swagger
- Team Systems
- titanium native
- titanium turbo
- Unit Testing
- Vista
- Visual Studio
- Visual Studio 11
- voice
- win7
- Windows 7
- Windows 8
- windows update