Design report in runtime

Hi,

how can I design report in runtime?? When I do .DesignReport() nothing happens.

I use Delphi Embarcadero XE3 and FastReport 4.13

Comments

  • edited 9:53PM
    Add frxDesgn unit in uses clause


    Best regards - Ulrich
  • edited 9:53PM
    Hi Andriy

    Do you get an error? Just not showing the designer?

    I'm not having problems. Using 4.0 on Delphi XE.

    frxReport: TfrxReport;
    ...

    frxReport.LoadFromFile(FTemplate);
    frxReport.DesignReport;

    works for me.

  • edited 9:53PM
    Nothing... This is my code:
    with ClientDataSet1 do
        begin
          Active := False;
          FieldDefs.Clear;
          FieldDefs.Add('prueba1', ftString, 30, False);
          FieldDefs.Add('prueba2', ftString, 30, False);
          FieldDefs.Add('prueba3', ftString, 100, False);
          CreateDataSet;
          Append;
            FieldByName('prueba1').AsString := 'hola';
            FieldByName('prueba2').AsString := 'feo';
            FieldByName('prueba3').AsString := '123456';
          Post;
        end;
    Informe.LoadFromFile('Informe.fr3', true);
    Informe.DataSets.Add(frxDBDataset1);
    Informe.DesignReport();
    if Informe.PrepareReport() then
          Informe.ShowReport();
    

    Someone help me??
  • edited 9:53PM
    AntonLL wrote: »
    Hi Andriy

    Do you get an error? Just not showing the designer?

    I'm not having problems. Using 4.0 on Delphi XE.

    frxReport: TfrxReport;
    ...

    frxReport.LoadFromFile(FTemplate);
    frxReport.DesignReport;

    works for me.

    Its not showing the designer...
  • edited 9:53PM
    Andriy wrote: »
    Andriy wrote: »
    Hi Andriy

    Do you get an error? Just not showing the designer?

    I'm not having problems. Using 4.0 on Delphi XE.

    frxReport: TfrxReport;
    ...

    frxReport.LoadFromFile(FTemplate);
    frxReport.DesignReport;

    works for me.

    Its not showing the designer...

    I am also having same problem..

    running on Using 4.0 on Delphi XE4

    procedure TForm1.Button1Click(Sender: TObject);
    VAR frxReport3: TfrxReport;
    begin
    frxReport3.LoadFromFile('C:\Users\almco11\Documents\RAD Studio\Projects\report\summaryreport.fr3');
    frxReport3.DesignReporT;
    end;



  • gordkgordk St.Catherines On. Canada.
    edited 9:53PM
    the designer is not included with the embarcadero version or basic version only standard and above.

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.