Using Tables in RTF

后端 未结 2 756
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 18:27

I need to create a table in an RTF file. However I am not familiar with RΤF. Here is an example of a text file that these RTF files are supposed to replace:

         


        
相关标签:
2条回答
  • 2020-12-01 18:53

    Editing directly in RTF becomes quickly unreadable. Pehaps this practical approach works better: - Create an example mock-up ( in Excel or Word ) using unique identifiers as placeholders ( example "(P1)" ) - Then save as RTF - Open the RTF in notepad - copy the RTF codes "as is" and replace the placeholders with actual values in your program

    0 讨论(0)
  • 2020-12-01 18:59

    This site is useful: http://www.pindari.com/rtf3.html

    {\rtf1\ansi\deff0
    \trowd
    \cellx1000
    \cellx2000
    \cellx3000
    \intbl cell 1\cell
    \intbl cell 2\cell
    \intbl cell 3\cell
    \row
    } 
    

    This will give:

    ---------------------------
    |cell 1 | cell 2 | cell 3 |  
    ---------------------------
    

    A row is delimted with \trowd ... \row

    Each cell ends with \cell

    \cellx determines the right side of the corresponding cell in twips

    0 讨论(0)
提交回复
热议问题