Help with DateTimepicker

Hi all!


I am relatively new to FastReport.Net and need help with the Dialog DateTimePicker. I have an SQL Database with an DateTime Table and wanted to create a report, where I can pick two dates and display the Data between those two dates. The problem is, that I don not know how to use this dialog function.


Any ideas?


With regards


Christian

Comments

  • Hello!

    We have a good example which is in FastReport.Net Demo -> Dialogs -> Filtering with Date Ranges.


    Best regards, 

    Anatoly

  • Hello!

    To filter an SQL table based on a range of two dates from a dialog box: add two DateTimePickerControls (DateTimePicker1, DateTimePicker2) to the DialogPage, bind them to a single date column using the DataColumn property and set FilterOperation to GreaterThanOrEqual or LessThanOrEqual (or pass their Value properties to the @FromDate and @ToDate SQL parameters of the query in the OkButton_Click event using Report.SetParameterValue)

This discussion has been closed.