Using Stata 12.1
I am using rtfutil to output tables to an .rtf file. As I mean to do as little manual editing as possible on the output, I am trying to format the tables with rtfutil and listtab for outputing the tables and I used the following commands:
The string in cdadd() is defining each border of the cell as a single line and it will go on the cell definition section (and not on the cell contents), along with the width.
This is working fine for tables up to 3 columns, but on a table with more than 4 columns the tables start getting corrupted. I inspected the rtf code that is being written in these situations and the string in cdadd() gets cut halfway through.
Has anyone run into this before and have any ideas? My only solutino for now is outputting the tables without borders.
Thank you for your time and help
Miguel
I am using rtfutil to output tables to an .rtf file. As I mean to do as little manual editing as possible on the output, I am trying to format the tables with rtfutil and listtab for outputing the tables and I used the following commands:
Code:
rtfrstyle v1 v2 v3 , local(b d e) cdadd("\clbrdrt\brdrs\clbrdrl\brdrs\clbrdrb\brdrs\ clbrdrr\brdrs") cwidths(9000 600 1133) listtab v1 v2 v3, handle(fh) begin("`b'\fs20 ") delim("`d'") end("`e'") head("`b'\fs20\ql{\b `x'}`d'\qc{\b `y'}`d'\qc{\b `z'}`e'") ------- (I am defining x, y and z before with the headers)
This is working fine for tables up to 3 columns, but on a table with more than 4 columns the tables start getting corrupted. I inspected the rtf code that is being written in these situations and the string in cdadd() gets cut halfway through.
Has anyone run into this before and have any ideas? My only solutino for now is outputting the tables without borders.
Thank you for your time and help
Miguel