Viewer Type specifies the type of the report viewer for Report Viewer Config.
Theme Code:
<DoStyleAction>
<SetProperty>
<PropertyPath>
<PropertyName>ViewerType</PropertyName>
</PropertyPath>
<PropertyValue>...</PropertyValue>
</SetProperty>
</DoStyleAction>
Possible values:
ShellOpen New Window Text Viewer Download Inject |
Default value: ShellOpen
<DoStyleAction> <SetProperty> <PropertyPath> <PropertyName>ViewerType</PropertyName> </PropertyPath> </SetProperty> </DoStyleAction> |
ShellOpen is the default value for the Viewer Type property.
However, Text Viewer is the default viewer type for Report Viewer Config (set in system theme). This means that if you have not specified the viewer type for Report Viewer Config, LyciaClient will open the report with Text Viewer (some details are here).
Associated theme elements and properties:
Associated methods:
Create
setViewerType
getViewerType
Influence and behavior:
Viewer Type |
Description |
|
ShellOpen |
downloads the report from the server and assembles a command line from the automatically-generated report name and custom parameters set in the Lycia theme, then executes it:
|
|
New Window |
opens the report in a new browser window. Report content is assumed to be in the HTML format:
|
|
Text Viewer |
opens the report in a Lycia 3 built-in text viewer:
|
|
Download |
opens the Save as dialog allowing you to download and save the report:
|
|
|
sends the report directly to a printer:
|
|
Inject |
sends the report to the specified TextArea widget:
|
|
To open reports, LyciaDesktop and LyciaWeb call the programs associated with the file type in your system.
If you want the report to be opened in the definite viewer or editor, you have to make it the default one.
Related articles: