Creating Report Inside a Panel

Asked

Viewed 410 times

0

I need to display a report in a determined system area( in the right half)

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

How would I do that?

1 answer

2


In the onpreview report event put:

 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 pRelatory is panel name.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.