By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

Lebans HTML Editor

P: n/a
Wow, what a sweet piece of work. Anybody familiar with this?
It all works beautifully for me with one exception. The form background
if changed doesn't seem to stick. It's like it strips out the <body
bgcolor="#66FFB3">
from the HTML. It only gets everything in-between <body> and </body>.
I see that this uses the Microsoft Web Browser ActiveX control.
I see that the HTML is passed to the form by assigning the txtMemo field
to Me.WBrowser.Object.Document.body.innerHTML
I have been unable to find detailed documentation on the MS Web Browser
control. There is limited info on the Office 97 CD. Is there an outerHTML
property or some other that would pick up more of the HTML?

Any help would greatly be appreciated in advance,

Thanks,

miTch
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
found this....

http://msdn.microsoft.com/library/de...jects/body.asp

still not getting very far, may have to store the bgcolor in an additional
field
will keep you posted, let me know if anyone else has some ideas

"miTcheLL" <mitchell@"no_spam".topsideinc.com> wrote in message
news:1095691948.xjK8nViiH4uuiqXuUQ8DAA@teranews...
Wow, what a sweet piece of work. Anybody familiar with this?
It all works beautifully for me with one exception. The form background
if changed doesn't seem to stick. It's like it strips out the <body
bgcolor="#66FFB3">
from the HTML. It only gets everything in-between <body> and </body>.
I see that this uses the Microsoft Web Browser ActiveX control.
I see that the HTML is passed to the form by assigning the txtMemo field
to Me.WBrowser.Object.Document.body.innerHTML
I have been unable to find detailed documentation on the MS Web Browser
control. There is limited info on the Office 97 CD. Is there an outerHTML property or some other that would pick up more of the HTML?

Any help would greatly be appreciated in advance,

Thanks,

miTch

Nov 13 '05 #2

P: n/a
I remember this issue when I first produce the editor. As you've noticed
the Background color is a prop of the Document object and not the
Browser control. It's been a while but I remember testing several
different methods without arriving at a solution that would allow for
persistence within the HTML source.

For detailed info on using the control see:
http://msdn.microsoft.com/library/de...p/author/dhtml
/reference/constants/formatblock.asp

If you find a solution please let me know and I will incorporate your
fix in the next release.
:-)
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"miTcheLL" <mitchell@"no_spam".topsideinc.com> wrote in message
news:1095702193.DO2sz+8CtE4hzj5fxHy4WA@teranews...
found this....

http://msdn.microsoft.com/library/de...p/author/dhtml
/reference/objects/body.asp
still not getting very far, may have to store the bgcolor in an additional field
will keep you posted, let me know if anyone else has some ideas

"miTcheLL" <mitchell@"no_spam".topsideinc.com> wrote in message
news:1095691948.xjK8nViiH4uuiqXuUQ8DAA@teranews...
Wow, what a sweet piece of work. Anybody familiar with this?
It all works beautifully for me with one exception. The form background if changed doesn't seem to stick. It's like it strips out the <body
bgcolor="#66FFB3">
from the HTML. It only gets everything in-between <body> and </body>. I see that this uses the Microsoft Web Browser ActiveX control.
I see that the HTML is passed to the form by assigning the txtMemo field to Me.WBrowser.Object.Document.body.innerHTML
I have been unable to find detailed documentation on the MS Web Browser control. There is limited info on the Office 97 CD. Is there an

outerHTML
property or some other that would pick up more of the HTML?

Any help would greatly be appreciated in advance,

Thanks,

miTch



Nov 13 '05 #3

P: n/a

I've been using Stephen's HTML editor in my widely distributed app for
about a YEAR now. Generally it's great. I just wish there was a way
to integrate it into an existing form so that the HTML editing
features would appear inside a text box. Perhaps there is already and
I just have not yet figured it out.

Anyone have any advice or comments on this?

BTW -- Note to Stephen -- you are an AWESOME asset to the VBA
developer community. Many of us love you!
On Tue, 21 Sep 2004 07:54:08 -0400, "miTcheLL"
<mitchell@"no_spam".topsideinc.com> wrote:
Will do, I am working on something right now.

rh

"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:sY**********************@ursa-nb00s0.nbnet.nb.ca...
I remember this issue when I first produce the editor. As you've noticed
the Background color is a prop of the Document object and not the
Browser control. It's been a while but I remember testing several
different methods without arriving at a solution that would allow for
persistence within the HTML source.

For detailed info on using the control see:
http://msdn.microsoft.com/library/de...p/author/dhtml
/reference/constants/formatblock.asp

If you find a solution please let me know and I will incorporate your
fix in the next release.
:-)
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"miTcheLL" <mitchell@"no_spam".topsideinc.com> wrote in message
news:1095702193.DO2sz+8CtE4hzj5fxHy4WA@teranews...
> found this....
>
>

http://msdn.microsoft.com/library/de...p/author/dhtml
/reference/objects/body.asp
>
> still not getting very far, may have to store the bgcolor in an

additional
> field
> will keep you posted, let me know if anyone else has some ideas
>
> "miTcheLL" <mitchell@"no_spam".topsideinc.com> wrote in message
> news:1095691948.xjK8nViiH4uuiqXuUQ8DAA@teranews...
> > Wow, what a sweet piece of work. Anybody familiar with this?
> > It all works beautifully for me with one exception. The form

background
> > if changed doesn't seem to stick. It's like it strips out the <body
> > bgcolor="#66FFB3">
> > from the HTML. It only gets everything in-between <body> and

</body>.
> > I see that this uses the Microsoft Web Browser ActiveX control.
> > I see that the HTML is passed to the form by assigning the txtMemo

field
> > to Me.WBrowser.Object.Document.body.innerHTML
> > I have been unable to find detailed documentation on the MS Web

Browser
> > control. There is limited info on the Office 97 CD. Is there an
> outerHTML
> > property or some other that would pick up more of the HTML?
> >
> > Any help would greatly be appreciated in advance,
> >
> > Thanks,
> >
> > miTch
> >
> >
>
>


Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.