To run production views, you'll need to customize its behavior by creating a PFF file. You can then use the PFF file as a command line parameter in DOS or in a Windows icon for CSView.exe (the associated filename of this utility). For example, if you name your PFF MyView.pff, then you can run CSView by invoking:
"C:\Program Files (x86)\CSPro 8.1\CSView.exe" MyView.pff
This assumes that CSPro was installed in the default directory. Your PFF file must have a .pff extension.
You can create a PFF file by yourself using a text editor (such as Notepad or Wordpad) or the
PFF Editor. You can also manipulate PFF files in logic by using the
Pff object.
The following section shows the options available to you in a CSView PFF file. A PFF file is not case sensitive, so you can use any combination of upper and lower case text.
[Run Information]
Version=CSPro 8.1
AppType=View
Description=My Program
ShowInApplicationListing=Always
[Files]
Application=.\MyReport.cshtml
[Parameters]
OnExit=.\Menu.pff
The [Run Information] block is required. While Version and AppType must appear exactly as shown in the example above, there are two optional properties:
- Description=if specified, it will be used instead of the name of the file in the list of applications (mobile only), as well as in CSView's title bar (Windows only).
- ShowInApplicationListing=determines whether the application associated with this PFF is displayed on the mobile Entry Applications screen. The possible options are: Always (default), Never, and Hidden. Operators must manually elect to show hidden applications, whereas PFFs with the Never option will never be shown.
The [Files] block is required.
- Application=the name of the file to view.
The [Parameters] block is optional.
- OnExit=specifies a PFF file to run after viewing the file. This can be useful, for example, if you want to relaunch a menu program after viewing the file.