[Urgent] How to make a static table?

General TRichView support forum. Please post your questions here
Post Reply
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

[Urgent] How to make a static table?

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you want this table to overlap the text?
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post by Ceprotec »

ok, and you could pass me an example please?
grateful.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply