Creating Report Within a panel

0

I need to display a report in a certain area of the system (mid-way)

Already in the left half I want to put other components (such as mode and display buttons and other options for printing)

How would I do this?

    
asked by anonymous 26.07.2016 / 15:50

1 answer

2

In the report's onpreview event, place:

 var
   frmPreview: TfrxPreviewForm;
begin
  inherited;
   Relatorio.PreviewOptions.Modal   := False;
   Relatorio.EngineOptions.DestroyForms := True;
//   Relatorio.PreviewOptions.Buttons := [pbPrint,pbLoad,pbSave,pbExport,pbZoom,pbFind,pbOutline,pbPageSetup,pbTools,pbNavigator,pbExportQuick,pbNoClose,pbNoFullScreen];
   Relatorio.PreviewForm.Align := alClient;
   frmPreview := TfrxPreviewForm(Relatorio.PreviewForm);
   frmPreview.BorderStyle := bsNone;
   frmPreview.Left:=0;
   frmPreview.Top:=0;
   frmPreview.Width:=pRelatorio.ClientWidth;
   frmPreview.Height:=pRelatorio.ClientHeight;
   frmPreview.Parent:=pRelatorio;

Where pRelatorio is the name of the panel.

    
28.07.2016 / 13:43