Report designer specifying dataset in code and also how to hide the reports dataset option

edited 11:06PM in FastReport 4.0
Hi Can I specify the default dataset to use when calling the designer from code? I presumed it would be something like the below, however this does not work.

Also it it possible to hide the select reports dataset option in the report designer.

frxrptDesigner.Designer.Report.DataSet:=FRXDBADataset;
frxrptDesigner.DesignReport(True);


thanks

meee

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:06PM
    // if working with a previously created report load the report first
    frxreport1.Clear;
    frxreport1.DataSets.Add(frxdbdataset1);
    frxreport1.DesignReport;
  • edited 11:06PM
    gordk wrote: »
    // if working with a previously created report load the report first
    frxreport1.Clear;
    frxreport1.DataSets.Add(frxdbdataset1);
    frxreport1.DesignReport;


    Thanks for the reply, also is there a way to hide the Also it it possible to hide the select reports dataset option in the report designer.


    thanks

    Mee
  • gpigpi
    edited 11:06PM
    You can set TfrxDesigner.Restrictions

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.