473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Lebans HTML Editor

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
3 2236
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
3
by: Alex Wisnoski | last post by:
I am trying to adapt Lebans' ReportUtilities to export reports (to preserve formatting) from an Access 97 application. I have made the reference to his mde and copied the modules into my db. I...
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
6
by: Sharper | last post by:
I have just downloaded lebans rtf2 which initially looks very interesting. Having a little trouble though in getting the RTF2 toolbar to appear on my own db although it is on the sample. I have...
16
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through...
2
by: penguin732901 | last post by:
Hi Steve, I hope you can help me with this. In Access 97, I'm getting the following error. "The formats that enable you to output data as a Microsoft Excel, rich-text format, MS-DOS text, or...
14
by: nospamhere | last post by:
Hello Stephen and all, This is such a cool group. I really need to spend more time here. A few months ago I noticed some brief discussion here about the fact that your excellent HTML Editor...
5
by: Tim Marshall | last post by:
I'm thinking of using Stephen Lebans Report to PDF utility/dll in a Jet application I'm running (I want to be able email some reports with complex information and the conversion to html just...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.