Wordwrap in browser control

R

Rob

I finally got a WebBrowser activex control working to display text files I
have stored on my local machine but the text does not automatically wordwrap
for some reason. Can someone let me know how to turn on wordwrap or do I need
to set the text file as the inner html or something? Or even if there is a
decent text viewer activex control. Thank you very much in advance.
 
R

Rob

Bonnie - thanks for the reply.

I am just using the default "Microsoft Web Browser" control that you get to
via Insert ActiveX Control.

I simply dont see any format options for "wrap text" so maybe I need to use
a different control or need to make the text file the innerbody or something
if that will make it scroll.

-Rob
 
R

Rob

Can anyone help with this? I still don't have a solution to enable wordwrap
with the bowser control or another control tha lets me view text files with
wordwrap.

Thanks ahead of time for any help.

-Rob
 
R

Rob

hmm. the control is 7.5 inches wide by 4 inches tall but it does not seem to
matter if I make it bigger or smller. Some of my text files already have line
returns so those look good but others just run off the screen to the left.

Maybe I am using the control incorectly. This is all I am doing to get the
text file opened in the control:

Private Sub WebBrowser0_Enter()
Me.WebBrowser0.Navigate URL:=[ArticleBody]
End Sub

where [ArticleBody] is a field that contains the name of the local text file.

Thanks again for the help.

-Rob
bhicks11 via AccessMonster.com said:
Rob I just made a form with the web browser and opened docs and txt files.
They are wrap correctly. No problems. What size is your control?

Bonnie
http://www.dataplus-svc.com
Can anyone help with this? I still don't have a solution to enable wordwrap
with the bowser control or another control tha lets me view text files with
wordwrap.

Thanks ahead of time for any help.

-Rob
Bonnie - thanks for the reply.
[quoted text clipped - 21 lines]
to set the text file as the inner html or something? Or even if there is a
decent text viewer activex control. Thank you very much in advance.
 
R

Rob

When I open it directly with IE it also does not wordwrap. If I add a
<HTML><BODY> to the begining and </BODY></HTML> to the end then it wordwraps.

Anyway, I decided to try something different which was to open the HTML
version of the document and figure out how to turn off the error messages
(which was the problem wth the HTML before). This is working fine so I guess
I have a viable solution. I cant beleive it is so hard to view text files.

Thank you very much for trying to help.

-Rob

bhicks11 via AccessMonster.com said:
That's pretty much how I navigated. Sorry Rob I don't know the answer for
you. I'm sure you goggled it as I did and find nothing. I'm not duplicating
it either. Have you tried opening that doc from IE outside of Access just
for chuckles?

Bonnie
http://www.dataplus-svc.com
hmm. the control is 7.5 inches wide by 4 inches tall but it does not seem to
matter if I make it bigger or smller. Some of my text files already have line
returns so those look good but others just run off the screen to the left.

Maybe I am using the control incorectly. This is all I am doing to get the
text file opened in the control:

Private Sub WebBrowser0_Enter()
Me.WebBrowser0.Navigate URL:=[ArticleBody]
End Sub

where [ArticleBody] is a field that contains the name of the local text file.

Thanks again for the help.

-Rob
Rob I just made a form with the web browser and opened docs and txt files.
They are wrap correctly. No problems. What size is your control?
[quoted text clipped - 15 lines]
to set the text file as the inner html or something? Or even if there is a
decent text viewer activex control. Thank you very much in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top