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