Solved

Printing column headings on each page with Delphi 7 & Rave

Posted on 2009-04-06
3
814 Views
Last Modified: 2013-11-22
I am using Rave 6.05 with Delphi 7 and printing some custom reports using the TRvSystem and TTablePrinter components.  I have a base and detail detail TTablePrinter and both have the ReprintHeader option set to true.  My problem is that when I print the report, the column headings of the base TTablePrinter only print the first time on the first page.  Is this a bug in the components or am I missing something?

Tom T.
0
Comment
Question by:tturney
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
rfwoolf earned 500 total points
Comment Utility
I use Rave quite a bit and I've never heard of the TTAblePrinter component, so I can't help you there. What I do know is that inside Rave there are Bands and DataBands. There is a distinct difference between these two: DataBands **CYCLE / ITERATE** through each record and show any accompanyinig header or footer bands. For example if you do this:
-BAND (plain) <-- put your column headings and set it to print once per page
-DATABAND (connected to your RvDataSet)

If you can't find a setting that makes it appear at the top of every page, try doing the above except make the BAND a Master Header of the Databand.
Hope that works.
0
 

Author Comment

by:tturney
Comment Utility
RfWoolf,

  Thanks for your response.  The TTablePrinter component is with the code based Rave reports.  In it you create the columns and dimensions of the report layout and then attach events to the initialization, finalization and printing of each of the headings, lines and footings of the report.  My problem seems to be comming from when I force a new page (TTablePrinter.newPage).  It seems to be ignoring the heading and continuing the lines printing.

Tom T.
0
 
LVL 13

Expert Comment

by:rfwoolf
Comment Utility
oh I thought you were using the rave designer, didn't know you were coding it. If you can find a way to implement a band header then that might solve the trick.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now