Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Doc Contents into Multiline Textbox

Status
Not open for further replies.

gi11ies

Programmer
Mar 26, 2002
52
Hi

I have a multi-line text box on a form that I paste contents from Word Doc into, and then with a click on the submit button its entered into an Access database, stored in a memo field.

When I retrieve the entry from the database I display it using a Label, and use the Replace command for putting new lines in the formatting.

ie
Replace(myDS.tables("myName").rows(0)("myValue").tostring(), VbCrLf, "<br />")

I am wonder if there is any way I can pick up Bold, Italic or any other kind of formatting that was orignally in the Word Doc and use the Replace command to recreate it on the page?

Any Help Would Be Great.

Gillies
 
Not natively if you are just pasting the text into a TextBox, but instead you could upload the word file to the server and then use the word object model to save the contents as html.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top