logo
small logo
  • Products
  • Buy
  • Support
  • About
  • Customer panel Support
    • en
    • de
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • How to work in Designer and Viewer via command line
  • The Event of ExportParameters in WebReport.Report

    October 5, 2020

    In FastReport 2020.1 we have added the ability to change export parameters. To do this,

    read more
  • How to select the top values in a matrix

    April 22, 2021

    The article is relevant until version 2022.1. FastReport .NET has a great tool for displaying data

    read more
  • Application with FastReport .NET in Docker with Linux

    November 17, 2021

    Docker is a software platform for rapid development, testing and launching of applications. Due to

    read more
  • Handling of PreviewControl.OnPrint and .OnExport events

    October 1, 2020

    In FastReport 2019.4 added the ability to subscribe to PreviewControl.OnPrint and PreviewControl.OnExport events, which are

    read more
  • MS Word format vs. Open Document Text. Which is better?

    October 19, 2020

    Speaking of text editors, we immediately present coryphaeus as Microsoft Word, which for many years

    read more

How to work in Designer and Viewer via command line

March 8, 2019

In addition to the libraries themselves, FastReport.Net also includes separate programs - Designer and Viewer.

The first one, as you understand, is intended for creating and editing report templates. It has a report preview mode from which you can view the report, export it to the desired data format and send it to print.

The Viewer is designed to view reports in fpx preview format. The report file in this format contains, besides the report template, also directly the data that will fill this report. That is, the * .fpx file is essentially a ready-to-view report. In terms of functionality, the Viewer is almost identical to the report preview mode in Designer. Actually, Designer compiles the report for viewing in fpx.

Both of these programs have a graphical user interface. However, few people know that they can be run from the command line with parameters.

Let's take a look at the way to work with Designer from the command line.

- Firstly, you can start the program with the command:

Designer.exe

If, on the command line, the directory with installed FastReport.Net is selected, then you can limit yourself to this command. Otherwise, you need either to move to the desired directory using the CD command, or add the path to Designer.exe.

- Secondly, you can open the report template in the designer using the command:

Designer.exe Report.fpx

Where Report.frx is the name of the report template. If it is not in the currently selected directory, then you need to specify the path to this file. By executing this command, you will see a designer with an open report template, i.e. you can immediately start editing the report. If the path to the designer or to the report template contains spaces in the directory names, then you need to quote it - “My reports / Report.frx”.

- Thirdly - you can run the report immediately in preview mode:

Designer.exe Report.frx /preview

That is, you specify two parameters - the path to the report template and the key to start the preview mode.

And now we will have look at the way to work with the Viewer program from the command line.

- As in the case with the designer, you can simply launch the report viewer with the command:

Viewer.exe

Here you just need to specify the path to the executable file of the application.

- Add parameter - path to the report file in * .fpx format:

Viewer.exe Report.fpx

Where Report.fpx is the file path. This command will launch the program with the loaded report.

- And last, a new feature - the possibility of simple printing

Viewer.exe Report.fpx /P

That is, we specify the report file and key - start printing. At the same time, we will not be able to see the report viewer itself, but only the print form:

 

It remains to set the print settings and run it only.

If you run Viewer.exe / P, the print dialog with the settings will open. After clicking on "Print", a window with a command line will be displayed, which can be used later for "silent" printing on a particular printer. It can be copied with Ctrl + C and used later.

about product buy
avatar
Dmitriy Fedyashov
Technical Writer
Fast Reports Team: Dmitriy Fedyashov - Technical Writer at Fast Reports
.NET FastReport

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Buy
  • Download
  • Documentation
  • Testimonials
  • How to uninstall
  • FAQ
  • Tutorial Video
  • Forum
  • Support SLA
  • Articles
  • Our News
  • Press about us
  • Resellers
  • Extended licensing
  • Contact us

© 1998-2023 by Fast Reports Inc.

  • Privacy Policy
  • Cookies Policy

Trustpilot
By clicking “Accept all, you agree Fast Reports can store cookies on your device and disclose information in accordance with our Cookie Policy.