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?
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?
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.