Edit rtf at runtime

Asked

Viewed 82 times

1

Below follows a line code of an RTF file in which I need to edit at runtime.

\clvertalc\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx7800\clvertalc\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\brdrw10\brdrs\clbrdrb\brdrw10\brdrs \cellx9926\pard\intbl\nowidctlpar\hyphpar0\sb20\sa60\cf1\kerning1  %Riscos%\cell\pard\intbl\nowidctlpar\hyphpar0\qc (S/N)\cell\row\trowd\trgaph70\trleft-1134\trqc\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trpaddl70\trpaddr70\trpaddfl3\trpaddfr3\trowd\trgaph70\trleft-1134\trrh397\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trpaddl70\trpaddr70\trpaddfl3\trpaddfr3

Here are two examples (One of how it is and one of how it should look)

How are you:

inserir a descrição da imagem aqui

As it should be:

inserir a descrição da imagem aqui

My question is: Which tag should I use to have this effect? I already searched a lot on the internet, but what I found are only tags where only Microsoft Office Word has support, what I need is that Wordpad (Also Microsoft) can support.

If you can send PDF documents to 'offline' studies I would appreciate it. Study links are also welcome.

  • 1

    Theoretically it would just add \b Risco: Animais domes... \b0

  • Exactly, after exhaustively checking around here I arrived at this solution that you posted. I got it, but like I never had it, I tweaked the rtf file source code....

1 answer

1


The control properties of certain control words have only two states. When this control word has no parameter or has a non-zero parameter, it is assumed that the control word activates the property. When this control word has a parameter 0, it is assumed that the control word disables the property.

We have the property \b that activates the beginning of bold. And to disable the pre determined sequence of text, we use the \b0.

So to solve your problem, you can use it this way:
\b Risco: Animais domes... \b0

Source: http://www.biblioscape.com/rtf15_spec.htm

Browser other questions tagged

You are not signed in. Login or sign up in order to post.