WPCubed Product Support

A Section can not start with a table.

Hi,

I have a problem reading an Rtf that has a section that starts with an table. The Section is ignored, and the previous sections header/footer is used.

Is it an error in WpTools or is something missing in the Rtf?

My Rtf-example:

{\rtf1\ansi{\fonttbl{\f0\froman Times New Roman;}}
{\colortbl\red0\green0\blue0;}
\deftab1134\deflang1053\doctype0\paperw11906\paperh16838\margl1417\margr1134\margt850\margb850\headery850\footery850
{\header}
{\footer}\pard\ql{\f0\fs22\cf0 First page}
\par\sect\sectd\sbkpage\lndscpsxn0\pgwsxn11906\pghsxn16838\marglsxn1417\margrsxn1134\margtsxn1417\margbsxn1417\headery850\footery850
{\header\pard\ql{\f0\fs22\cf0 Header section 2}
\par}
{\footer\pard\ql
\par}\pard\ql{\f0\fs22\cf0 This get a new page section}
\par\sect\sectd\sbkpage\lndscpsxn0\pgwsxn11906\pghsxn16838\marglsxn1417\margrsxn1134\margtsxn1417\margbsxn1417\headery850\footery850
{\header\pard\ql{\f0\fs22\cf0 Header section 3}
\par}
{\footer\pard\ql
\par}\trowd\trgaph85\trleft-85\clvertalt\cellx9638\pard{\pard\intbl\ql{\f0\fs22\cf0 This does not get a new page section}
\cell}\row\trowd\trgaph85\trleft-85\clvertalt\cellx9638\pard{\pard\intbl\ql
\cell}\row}

Per-Erik Andersson

#1 ♥ 0
3.9k Views 2 users read 2 min
support

Hi,

I see, it does not draw the arrow - but it shows "Header 3" on the page 3.

Julian

#2 ♥ 0

After I discovered the error I simplified the Rtf, and didn't see that the header actualy worked on the first table (just saw the arrow wasn't there). The error occurs if there is two section after each other starting with tables. Like this:

{\rtf1\ansi{\fonttbl{\f0\froman Times New Roman;}}
{\colortbl\red0\green0\blue0;}
\deftab1134\deflang1053\doctype0\paperw11906\paperh16838\margl1417\margr1134\margt1417\margb1417\headery850\footery850
{\header\pard\ql{\f0\fs22\cf0 First header}
\par}
{\footer\pard\ql
\par}\pard\ql{\f0\fs22\cf0 A paragraph}
\par\sect\sectd\sbkpage\lndscpsxn0\pgwsxn11906\pghsxn16838\marglsxn1417\margrsxn1134\margtsxn1417\margbsxn1417\headery850\footery850
{\header\pard\ql{\f0\fs22\cf0 Second header}
\par}
{\footer\pard\ql
\par}\trowd\trgaph85\trleft-85\clvertalt\cellx3827\clvertalt\cellx9638\pard{\pard\intbl\ql{\f0\fs22\cf0 First table}
\cell\pard\intbl\ql
\cell}\row\sect\sectd\sbkpage\lndscpsxn0\pgwsxn11906\pghsxn16838\marglsxn1417\margrsxn1134\margtsxn1417\margbsxn1417\headery850\footery850
{\header\pard\ql{\f0\fs22\cf0 Third header}
\par}
{\footer\pard\ql
\par}\trowd\trgaph85\trleft-85\clvertalt\cellx2693\clvertalt\cellx9638\pard{\pard\intbl\ql{\f0\fs22\cf0 Second table}
\cell\pard\intbl\ql
\cell}\row}

The second table get the same header as the first one.

/Per-Erik Andersson

#3 ♥ 0
This category is archived. No new posts are possible.