Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print rave report

Status
Not open for further replies.

tag141

Technical User
Oct 4, 2003
119
AU
I hope Sods Law works for meagain but here goes. I want to have a button pressed and it prints my rave report. It was easy in VB and I bet it's easy in D7 but I can't seem to find out how. I can't simply do Report.rav.Print !

Also, I want to print only the record I have selected on my form. How do I send that specific record to my report?

I appreciate any help but a pointer to tutorials or examples would be good as well.

TIA.
 
Finally a question I can help with...

Part 1-
Code:
RaveReportThingy.Execute

What i do is the following:

When i only want one "record" to be on the RAVE report, the best way of doing it to create a ADOQuery and then have the output of the query being filtered into Rave through a RaveDataSet.

Example:
Code:
SELECT *
FROM People
WHERE Name = [DATAONE];
By pushing only the name you want into the SQL you get only the record you want. :p
A good idea is when a single record is selected in the form, the ADOQuery can be updated straight away to reflect the record that has been selected.

Hope this helps, kinda :)

Delphi, Delphi, Delphi. Oi! Oi! Oi!
 
PTU,

Thanks for the help. Feels good when you can help someone else doesn't it. Sods Law struck again though. I am a Cut and Paste coder however. This is what I C+P from somewhere

Code:
procedure TForm1.Button4Click(Sender: TObject);
begin

  RvProject1.Open;
  RvProject1.SelectReport('Report',False);
  RvProject1.Execute;
  RvProject1.Close;
end;

I need loads of help with formatting the report.
 
OK, I've sorted everything out but I have one other problem. Displaying the data how I want it. My database contains a list of photographers and equipment. The app was built so I could choose a photographer and print off all details. To keep paper waste to a minimum I made the report A5. The problem is the equipment is a list and if there is too much information in that field, it pushes the report bigger than A5. I want to have the equipment field carry on to the next column.

eg

Equipment
(Col1) (Col2) (Col3)
1 6 11
2 7 12
3 8 13
4 9 14
5 10 15

At the moment it lists all equipment (1-15) in on column. If I change the memo property to RTF it lists it horizontally. So if the formatting doesn't look correct on your PC but I hope you understand my predicament.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top