First Report

edited 11:37PM in FastReport .NET
Hello-

Designed report and can preview it in design mode... but I move it to production and bind a dataset, the loading icon just spins.

Can someone please help.

Thanks,
-Thomas

Comments

  • edited 11:37PM
    desktop or web application?
  • edited 11:37PM
    Web
  • edited 11:37PM
    Hello-

    I am past the spinning icon... Thanks.

    Now I am receiving an Error... Table is not connected to the data. Register the data using Report.RegisterData method.

    Here is the method I am using on Page_Load...

    private void BindData()
    {
    Report FReport = WebReport1.Report;
    RegisterData(FReport);
    }

    private void RegisterData(Report FReport)
    {
    DataSet dsMain = LoadSearchResults();
    FReport.RegisterData(dsMain, "Employee");
    FReport.Prepare();
    }

    Thanks again for your help.
    -Thomas
  • edited February 2017
    Hello-

    Now receiving this error...

    ERROR:
    Text5: Error in expression: FormatDateTime(ToDateTime([Table1.RouteDate]), "Short Date")

    The function is in the editor...
    [FormatDateTime(ToDateTime([Table1.RouteDate]), "Short Date")]
  • edited 11:37PM
    if datatype for field "RouteDate" is already DateTime, no need to convert or cast again. To format, right click on textobject and select format, there is predefined function you may use, such as dd MMM YYYY, try it...

Leave a Comment