Creating a new FastReport in C++ Builder
Hello! I am brand new to Fast Report. I used to use Rave Report, as it came pre-installed with C++ Builder. Here is the code to create an empty Rave Report in C++ Builder:
Could somebody please show me how to create a similar empty Fast Report in C++ Builder?
void __fastcall TfrReports::pbCreateReportClick(TObject *Sender)
{
  TRvProject* rp = new TRvProject(this);
  rp->New();
  TRvSystem* rs = new TRvSystem(this);
  rs->SystemPreview->FormState = wsMaximized;
  rs->SystemSetups = rs->SystemSetups >> ssAllowSetup;
  rs->DefaultDest = rdPreview;
  rp->Engine = rs;
  rp->Name = "MyRaveProject";
  // Every new Rave Report project contains a report called "Report1", so find it.
  TRaveReport* rr = (TRaveReport*)rp->ProjMan->FindReport("Report1", true);
  TRavePage* page = rr->FirstPage;
  page->PaperSize = DMPAPER_LETTER;
  page->Orientation = Rpdefine::poPortrait;
  TRaveRegion* region = (TRaveRegion*)page->CreateChild(__classid(TRaveRegion));
  // Done creating the report; now show it.
  rp->Execute();
  // Clean up.
  delete region;
  delete rs;
  delete rp;
  return;
} // end void __fastcall TfrReports::pbCreateReportClick(TObject *Sender)
//---------------------------------------------------------------------------
Could somebody please show me how to create a similar empty Fast Report in C++ Builder?
Comments
scoll tdown to c++ section