First Report

edited 10:42AM 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 10:42AM
    desktop or web application?
  • edited 10:42AM
    Web
  • edited 10:42AM
    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 10:42AM
    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

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.