I am attempting to update some coding and have very little experience. Any help would be greatly appreciated. I have the following code shown at the end of this posting. I wanted to include rich text so that I don't lose things such as superscripts and subscripts, so I changed the following: s1 = richText obj."Object Text" used to be s1 = obj."Object Text" however I would like to have the information italicized like it was before changing to rich text. Is there a way to display the information italicized and still keep the other rich text attributes? The highlighted portion attached is where the change was made.
void showtext(int i) { billiam45 - Wed Jul 27 12:36:47 EDT 2016 |
Re: How to italicize rich text For some reason I can't paste the code without an error so it's attached. |
Re: How to italicize rich text billiam45 - Wed Jul 27 13:04:05 EDT 2016 For some reason I can't paste the code without an error so it's attached. That is going to be a little on the tough side. You will have to embed you italics tags inside of the rtf string instead of put the tags on the outside of the rtf string. |
Re: How to italicize rich text DOORSHAM - Thu Jul 28 06:19:03 EDT 2016 That is going to be a little on the tough side. You will have to embed you italics tags inside of the rtf string instead of put the tags on the outside of the rtf string. How difficult of a process is this? I have a few thousand lines and I don't want to have to italicize all of the object text. |
Re: How to italicize rich text DOORSHAM - Thu Jul 28 06:19:03 EDT 2016 That is going to be a little on the tough side. You will have to embed you italics tags inside of the rtf string instead of put the tags on the outside of the rtf string. The more I think about it. I will just modify the text as I would like it displayed. This will work better going forward with a little effort up front. However, I have a new issue. Once I changed from displaying an object to displaying the object with richText, the formatting became an issue when I export to word. The items look perfectly fine in the display, but once they are exported to word I lose the carriage returns between items. This did not happen before the change below. Any suggestions to get the items to export with the proper carriage returns? I attached the code along with highlighting the areas addition of richText in two spots that affects the carriage returns between attributes.
Thanks for the help. Attachments DOORS Export.doc |
Re: How to italicize rich text billiam45 - Tue Aug 02 15:53:55 EDT 2016 The more I think about it. I will just modify the text as I would like it displayed. This will work better going forward with a little effort up front. However, I have a new issue. Once I changed from displaying an object to displaying the object with richText, the formatting became an issue when I export to word. The items look perfectly fine in the display, but once they are exported to word I lose the carriage returns between items. This did not happen before the change below. Any suggestions to get the items to export with the proper carriage returns? I attached the code along with highlighting the areas addition of richText in two spots that affects the carriage returns between attributes.
Thanks for the help. Try displaying a blank space between objects ie., display "" |