Page 1 of 1

[Urgent] How to make a static table?

Posted: Sat Jul 27, 2013 1:46 pm
by Ceprotec
Hello, in my application I have a table with one row and three columns, and every two new leaves at the top I put this table at runtime, but the problem is that if I type something on the first sheet that table is lowered along with the text, has some form of leave them static?

Thanks guys.

Posted: Sat Jul 27, 2013 4:36 pm
by Sergey Tkachenko
Do you want this table to overlap the text?

Posted: Mon Jul 29, 2013 1:28 pm
by Ceprotec
exactly the same way the score sheet, which shows there in the footer, for example, but in my case is in the text.

Posted: Mon Jul 29, 2013 2:29 pm
by Sergey Tkachenko
Our components do not support placing tables at the specified coordinates. If it is inserted in a document, it is moved with text.

The only solution I can imagine is placing this table in a separate document and print it over (or under) your main document (for example, using OnPagePrepaint event)

Posted: Mon Jul 29, 2013 2:59 pm
by Ceprotec
ok, and you could pass me an example please?
grateful.

Posted: Tue Jul 30, 2013 2:50 pm
by Sergey Tkachenko
May be I still do not understand what you need.

1) If you want to add a table at the beginning of the page, just add a hard page break before this table.

2) If you want to insert something at the top or the bottom of odd or even pages, consider using headers and footers. Printing different headers and footers for odd and even pages is supported since TRichView 14.6.

3) If you want to add something at the top or bottom of some pages, look at this (old) example: http://www.trichview.com/support/files/ ... aderex.zip
This example shows how to draw some content at the top of each page (this upper content may be different on each page, and may have different heights)

Posted: Tue Jul 30, 2013 5:40 pm
by Ceprotec
would actually nearly so, I am currently inserting a table at runtime on the page, but I would like her to stay still without moving, because currently if I enter something before this table it will go down, understand?

Posted: Thu Aug 01, 2013 7:36 am
by Sergey Tkachenko
If you want a table at the fixed position, you cannot insert it in the document itself (unless you want to display it at the top of the page, in this way you can use my suggestion 1 and 2, or at the bottom of the page, you can use the suggestion 2).

You can draw it separately, see my suggestion 3. This example draws at the top of the page, but you can change it to draw at the desired position.