Page 1 of 1

Repeat Header Rows

Posted: Wed Nov 20, 2024 9:29 am
by kcaron
I give up...

I've been trying to write code that will put my header rows at the top of a report (table) containing hundreds of rows of data. Despite my best efforts, I've not been able to make it work.

So I'm wondering if there is any wisdom here about how to repeat rows at the top of each page of a report???

Many thanks in advance,

Kevin

Re: Repeat Header Rows

Posted: Wed Nov 20, 2024 12:05 pm
by EViews Gareth
You'll need to provide more details on what you're doing. EViews doesn't have a "report" feature, so it is hard to interpret what you mean.

Re: Repeat Header Rows

Posted: Wed Nov 20, 2024 12:48 pm
by kcaron
Gareth,

I have a table with a header followed by many, many rows.

When I print the table the first page displays the header.

Every remaining page shows data, but no header.

I would like to repeat my header rows on each page.

KC

Re: Repeat Header Rows

Posted: Wed Nov 20, 2024 12:58 pm
by EViews Gareth
EViews doesn’t have this as a built in feature, and inserting the rows yourself programmatically is going to require knowing how many rows can fit per page.

Re: Repeat Header Rows

Posted: Wed Nov 20, 2024 1:11 pm
by kcaron
Thank you.

I've written code that counts rows of data, rows in the header, estimates number of pages, and the number of rows per page.

I"ve used this information to create tables with headers, but the process is a little clunky and the code is ugly.

It sorta works, but I thought it would not hurt to ask if a more elegant solution has been discovered.

Thank you.

KC