Using FastReport from command line with SQL variables

My SQL queries in FastReport take variables such as dates and numbers. How can I print such reports with variables using the command line?

Comments

  • dialog form???

  • Yes, we are currently using a dialog form. I wanted to know how to execute it from the command line while providing SQL variables.

    For example, I'm looking for a command like "FastReport.exe Query.frx /PRINT @data='01/01/2021'" in which @data would be used as a variable in Query.

  • there are 2 methods:

    1. pass the parameter to ado.net , register filtered data to fastreport
    2. pass the parameter to fastreport, eq: report.SetParameterValue(.. , ..), use script to filter the report

Leave a Comment