frxPreview, empty (dark)

Hi.

I'm using thsi code (from above)

procedure TForm1.frxReport1Preview(Sender: TObject);

var

 frmPreview: TfrxPreviewForm;

begin

 frxReport1.PreviewOptions.Modal := False;

 frmPreview := TfrxPreviewForm(frxReport1.PreviewForm);

 frmPreview.BorderStyle := bsNone;

 frmPreview.Parent:=Panel1;

 frmPreview.Left:=0;

 frmPreview.Top:=0;

 frmPreview.Width:=Panel1.ClientWidth;

 frmPreview.Height:=Panel1.ClientHeight;

end;


.. but why preview is empty (I have one text control my report page) and able to see it through frxPreview component.


Have tried:


frxReport1.PrepareReport;

frxReport1.Preview.Show;

frxReport1.ShowReport;

frxReport1.Preview := frmPreview1.Preview;

frxReport1.ShowPreparedReport;


but nothing helps.


What I did wrong?


Thank you

Comments

  • Try


    frxReport1.Preview := frmPreview1;

    frxReport1.PrepareReport;

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.