Repeat Header Rows

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Repeat Header Rows

Postby kcaron » Wed Nov 20, 2024 9:29 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Repeat Header Rows

Postby EViews Gareth » Wed Nov 20, 2024 12:05 pm

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.

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Re: Repeat Header Rows

Postby kcaron » Wed Nov 20, 2024 12:48 pm

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Repeat Header Rows

Postby EViews Gareth » Wed Nov 20, 2024 12:58 pm

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.

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Re: Repeat Header Rows

Postby kcaron » Wed Nov 20, 2024 1:11 pm

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


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests