467,080 Members | 898 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,080 developers. It's quick & easy.

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:

htmlDoc1.body.innerHTML="....";

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

example:

i charge the style at:

table{
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
  • viewed: 1111
Share:

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
reply views Thread by sagar.jawale@gmail.com | last post: by
6 posts views Thread by Dave Booker | last post: by
2 posts views Thread by Vicente García | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.