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

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.