mostrightfuture
28th September 2004, 17:06
Hi All friends

I have a problem in conversion of Baan report in RTF format. I have created a new device and configured it to convert the report into RTF format using the 4GL program "ttstpconv". Report converted well into RTF format, the problem comes after conversion. The report header and footer are misplaced. The footer of the first page come at the top of the second page and so on.

Actually the reson is, if define a device of type "Windows Printer" then you can also set the paper type, and while printing the report windows will print the page header & footer at the right place according to the page attributes. But if configure a device of any other type e.g. "Rewrite file" or "Append to file" as required for RTF conversion, its not possible to set the paper type. Now the report generation process out all report in the file as the text, and that RTF conversion with ttstpconv not inserted the "page break", only out the page header and footer as the text, without calculating the position of header and footer because the paper type is not available. If open that RTF converted report into MSWord, the footer and header not comes at the proper place.

Further more, somehow I calculated the number of lines that could be fit in one page with an specific font and its size, and set that number of lines in attributes "page lenght" in the device configuration session. Now the page header and footer comes at the right place. That technique works well with some reports, but those report where any detail section's text contains a "Carrige return" mark or text in any detail section extends from the specified number or lines, the footer misplaced and printed on the next page.


Is there any way to set the page attributes, any paramter that could use with that ttstpconv to insert the page break or any other way to print the page header and footer at the right place.

Thanks in advance
Mahmood

lvdvelde
21st October 2004, 18:32
Hi Mahmood,

I just found out that Baan released a new version of ttstpconv, which deals with a page-break problem when using RTF conversion. Check solution 142500 for this.

Regards,

Lex