Link to home
Start Free TrialLog in
Avatar of fredeqe
fredeqeFlag for South Africa

asked on

Delphi Rave Reports

I wish to print a report on each record of a database.  How do I set up a code based report to do this?
In other words  how do I get a new page for each new record?  I wish to print reports continuously for the database.
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

Hmm... I'm not in front of RAVE so I can't really help you,
but I would try adding a Region that covers almost the whole page,
add a databand and connect it to the correct dataview,
and then look at the settings of the dataview - it may have a note about "Start New Page" or some other applicable option..
Press F9 to execute the report (note: sometimes your application must be running, or the actual data components in your application must be connected, in order for the report to actually connect to the right data).

Beyond that, there are some tips and tricks on Nevrona's website:
http://www.nevrona.com/Default.aspx?tabid=53
"and then look at the settings of the dataview "
...sorry, I meant check the settings of the databand.
I believe, that how to do what you're looking for lies in a setting in the databand.
and don't forget you still need to add some components onto that databand and connect them to the dataview and the field that you want to display
Avatar of fredeqe

ASKER

Unfortunately, I am a first time Rave user and have limited documentation.  I think you are on the right track, but i need more detail. It seems that I need to transfer the data from the richedit to a table and the use the table to print the reports!

I will appreciate more assistance.

Fred Shaw
I went to that link I gave you and read through all the hints and tips to see if anything was relevant, and here's a possibility
"  Tip #20 - Printing RichText across multiple pages   "
http://www.nevrona.com/Default.aspx?tabid=74


..it describes how, using a memo or a richedit you can print multiple pages from within Delphi.
The problem is I don't know if this will help you or not, but I think it's worth a try.

There's a part that says
       If not MemoBuf.Empty then begin
          NewPage;
--so you see there is a command the starts a new page.
You can try think of a way to modify this to instruct it to start a new page maybe when i reads an end-of-line character or some other trigger.

Going through those links and all look for any examples of code-generated reports.
ASKER CERTIFIED SOLUTION
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
NOTE: Even though I have pasted the code above, you should still visit the article read the notes!!!
Avatar of fredeqe

ASKER

Thanks for your advice - i saw that artcle but misinterpretted the word "Rich Text". I will study the artcle and the code and will come back to you.

Regards

Fred Shaw