|
DetailBand의 AfterPrint이벤트에서 EndPage이벤트에서 처리할 내용을 처리하니 해결되네요...
술퍼맨 님이 쓰신 글 :
: 퀵리포트로 3개의 리포트를 만들어서 QRComposite로 묶어서 인쇄를 했습니다.
: 그런데 문제가 발생했습니다.
: 퀵리포트의 만든 폼과 BeforePrint이벤트에서 처리한 내용은 3페이지 모두 정상적으로 나옵니다.
: 그런데 각 리포트페이지들의 EndPage에 작성한 내용들이 뒤죽박죽 나옵니다.
: 리포트 1의 EndPage는 실행이 안돼구요.
: 리포트 2의 EndPage내용은 리포트1에 표시되구요.
: 리포트 3의 EndPage내용은 리포트 2와3페이지 두군데에 똑같이 나오네요 이게 왜그럴까요?
: 고수님들의 도움이 절실합니다. 부탁드려요
:
: void __fastcall TFormMain_Baksa::mPrint_PageClick(TObject *Sender)
: {
: FormPage1 = new TFormPage1(this);
: FormPage2 = new TFormPage2(this);
: FormPage3 = new TFormPage3(this);
:
: mPrint->ReportTitle = "HBsan";
: mPrint->PrinterSetup();
: mPrint->Print();
:
: delete FormPage1;
: delete FormPage2;
: delete FormPage3;
: }
: //----------------------------------------------------------------------------
:
: void __fastcall TFormMain_Baksa::mPrintAddReports(TObject *Sender)
: {
: mPrint->Reports->Add(Form1->QuickRep1);
: mPrint->Reports->Add(Form2->QuickRep1);
: mPrint->Reports->Add(Form3->QuickRep1);
: }
|