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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QuickReport

Status
Not open for further replies.

rzrdigo

Programmer
Joined
Jan 7, 2011
Messages
19
Location
BR
I am using Builder 6 and QuickReport for printing. The preview does not show anything, I do not know if i programmed it right anyway. Where can i find something good to study the QRep??
Thanks
 
There used to be some tutorials at QuickReports' web site. I don't know if they still exist for the older BCB.



James P. Cottingham
I'm number 1,229!
I'm number 1,229!
 
I am using QuickReport and am trying to make a report with more than one page. I tried to create two reports in diferent forms, separate, and then in the main form I put a preview button and a composite report to put both reports together, however on the preview just appears the last page added.

I used the following code:


//----------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//----------------------------------------------------------

void __fastcall TForm1::QRCompositeReport1AddReports(TObject *Sender)
{
QRCompositeReport1->Reports->Add(Form2->QuickRep1);
QRCompositeReport1->Reports->Add(Form3->QuickRep1);

}
//----------------------------------------------------------

void __fastcall TForm1::BtnPreviewClick(TObject *Sender)
{
QRCompositeReport1->Preview();

}
//----------------------------------------------------------

I did add all units and forms to Form1. Am using Builder 6 C++ and QuickReport v 3.0.9. Can anyone help?
Another thing, somehow i cant use "begin" or "procedure", any ideas why??
 
Begin and procedure are pascal language commands.

It's been a long time since I've used QuickReports but I'm not certain that
QRCompositeReport1->Reports->Add(Form2->QuickRep1);
QRCompositeReport1->Reports->Add(Form3->QuickRep1);
is "legal." I'll have to look at some of my old code if I get a chance.



James P. Cottingham
I'm number 1,229!
I'm number 1,229!
 
If you could do that it would help a lot. Thank you.
 
Did you figure this out. I finally found my old code. I didn't do composite reports but my previews looked more like: Form2->QuickRep1->Preview();


James P. Cottingham
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top