filter from c# code

Hello FS team,

is there a way to filter report using something like report1.filterString="[Customer.CustCode] in ('A001','A002')" from c# code runtime.

remember i don't want to use your dialog form for this, because i want to print report directly without showing it which i m doing right now with CrystalReports and Devexpress reports and they both have runtime filterString property to filter data runtime.

right now i m evaluating your reports for the testing purpose.

kindly give me suggestion

Comments

  • edited 5:41PM
    there are 2 kind of models :
    1. pull data from fastreport
    Yes, you can do filtering data at query level, database connection string is defined in frx file.
    https://www.fast-report.com/en/forum/index....tabledatasource

    2. push data from desktop/web project to fastreport
    filtering is available by modifying databand filter property, the syntax is not like sql syntax.

    internally, fastreport put data in TableDataSource class => table property (datatable type), i already tried to manipulate the datatable with no success.

    DataTable dt = (Report.GetDataSource("YourDataSourceName") as TableDataSource).Table;
  • edited 5:41PM
    ipong wrote: »
    there are 2 kind of models :
    1. pull data from fastreport
    Yes, you can do filtering data at query level, database connection string is defined in frx file.
    https://www.fast-report.com/en/forum/index....tabledatasource

    2. push data from desktop/web project to fastreport
    filtering is available by modifying databand filter property, the syntax is not like sql syntax.

    internally, fastreport put data in TableDataSource class => table property (datatable type), i already tried to manipulate the datatable with no success.

    DataTable dt = (Report.GetDataSource("YourDataSourceName") as TableDataSource).Table;


    ThanX for the reply dear

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.