472,141 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,141 software developers and data experts.

AxWebBrowser can modify styles?

I'm working with AxWebBrowser and i try to change the entire page, but i
don't find any way to do it

also i try to change by parts:
First the body:


and this also work:

htmlDoc.body.style.cssText="body{\nbackground-color: White;\nmargin-top:
300px;\nmargin-bottom: 0px;\nmargin-left: 0px;\nmargin-right:
0px;\nfont-family : \"Courier New\", Courier, monospace;\nfont-style :
italic;\nfont-weight : bold;\n}";

but i have no way to change or create news styles.

I need to change dynamically the aspect of the loaded web page .

Then I have 2 ways:

1- to be able to read a whole page from a string from AxWebBrowser.Document,
with a style. (i can't to do a temporaly html file and read it)
2- to be able to add and to modify styles of AxWebBrowser.Document and that
these affect to all the HTMLElements related


i charge the style at:

border-right: 1px
dotted #939393;
vertical-align : top;

and this would have to affect to all the tables contained in the document.
Some idea?

Tnks in advanced
Nov 15 '05 #1
0 1209

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Martin Ho | last post: by
reply views Thread by Matthias Kwiedor | last post: by
5 posts views Thread by JezB | last post: by
3 posts views Thread by Clint MacDonald | last post: by
reply views Thread by Adrian Belen via .NET 247 | last post: by
6 posts views Thread by Dave Booker | last post: by
2 posts views Thread by Vicente García | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.