07-22-2010 12:24 PM
HI,
I have created a program which is used for storing the data in a custom table. I have given to the user to edit the value available in the database with the help of ms-office. I need a help how to catch the styles like BOLD , italic, underline.... etc...can u plz give me a method or Class which is used to capture the user input values in the same style in the form of HTML.
Thanks and regards,
Naresh
07-22-2010 9:10 PM
That would be a rather complex VBA macro or OLE2 calls if you use OLE2 to connect MS Word to SAP.
Why don't you use a simple SAP editor, like the one used to edit long texts? (EDIT_TEXT function module, see RSTXTCAT as a simple example program). There is bold, italic, etc., and you get data like the following (if you use B, I, U character formats for bold, italic, underline respectively):
<B>bold</> <I>italic</> <U>underline</>
You can convert them easily and cleanly into HTML using CONVERT_ITF_TO_HTML for example.