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:
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

  • gordkgordk St.Catherines On. Canada.
    edited 12:25PM
    read the programmers manual build a report from code.
    scoll tdown to c++ section

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.