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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Web Component??

Status
Not open for further replies.

YvonneTsang

Programmer
Sep 28, 2001
37
CA
I know there are Office web components for Excel and Access(mainly for tables). I was wondering if there was one for Word. I want a text editor that can do bolding, fonts as well as creating a table and bold,italicing fonts in the table. Is there another application tht I can use for this? thanks in advance.
 
How about the microsoft Rich Text Control? The version will differdepending on what version of office you have. One word of warning I need to offer you is that the control is a client side object, which means the client machine that is connecting to your server will also need to have the same exact object from the same evrsion of MS Office, and I have learned that MS Licencing is particularly strict on allowing people to pass arounf office components. This will work in an intranet environment where everyone is running the same software standards, but probably wouldn't be to good for a web development environment outside of an intranet. On eadditional problem is that since this is an object rather than a form input, the data will not be passed in the form in the manner of text in a textarea object.
Two other possibilities, if the rich text control will not fit your needs, are creating a textarea with some extra font buttons, while the user is entering data they can click the begin and end font buttons in order to change to bold and so on. While they are typing transfer the data to a span next to the text area so they have both a text and an output window. The output window can apply any selected option as it is filling the span (using either checkboxes or buttons to change boolean variables for bold, italics, etc.) Another option is to create either a flash or java object and embed it in the page.

One additional option I just thought of would be to try and create a span that acted as a rich text area. Perhaps have a button that gives focus to a hidden text box. Use the onKeyUp event in the text box to fill the span by simply appending the keystrokes to the end of the innerHTML (similar to the method above) For all purposes it looks like the user istyping in the span. Then when they click a button to use bolded text or what not, you simply bold the text until they turn it back off (also like above) but the user never actually see's the real entry point for their typing.

Anyways, some of this is just me getting carried away, but I hope somewhere in the mish mash of ideas there is something that will fit your particular needs.

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top