BackPrevious Page Next PageNext

Exporting and Printing the Library Components in a Dashboard

Exporting the library components

Printing the library components

Library components visible in the page panel can be exported and printed, for example, library components that were created using JReport Designer and inserted into dashboards via the Resources panel.

When you export or print the library components in a dashboard, you choose whether to use system layout or customize the layout by yourself. In the system layout, JReport will calculate the positions of the library components in the dashboard following defined rule. If you are not satisfied with the system layout, you can customize the layout by yourself to determine the position of each library component and specify whether to export or print all the data of a table/crosstab or just the current page of the table/crosstab displayed in the dashboard. The customized layout can be saved for all users who can access the dashboard.

Exporting the library components

To export the library components in a dashboard, click the Export button Export button on the toolbar, or click the Options button Options button on the toolbar and select Export from the option list to open the Export dialog, then:

To export using system layout:

  1. In the Export dialog, the System Layout item is selected as the layout by default.

    Export dialog - System Layout

    The preview of the layout is displayed in the preview panel on the right. Sometimes you may find that the layout is a little different from what you see in the dashboard.

  2. In the Resources box, select the library components you want to export. By default all exportable library components are listed and selected.
  3. The order of the library components in the Resources box determines the order in which they will be exported. Click Move Down button and Move Up button to adjust the exporting order if necessary.
  4. Check the Show Component Title option if you want to show the library component titles in the exported result.
  5. Click the page navigation buttons on the toolbar of the preview panel to browse the pages if you want.
  6. Click the Page Setup button Page Setup button on the toolbar to set the page properties of the exported result file such as page size and margins in the Page Setup dialog. You can either define the page properties generally for all export formats or customize the page properties for each export format as you want.
  7. Click Export button to do the last setting and then export.
    1. From the Export File Format drop-down list, select the format to which the library components will be exported. For a format other than XML, all the selected library components will be exported into one single file. For XML, each library component will be exported to a separate XML file. When the exported result contains more than one file, all the files will be zipped.
    2. In the File Name text field, specify the name of the exported result file, which could be either a single file or a zipped package name.
    3. Check Run Linked Report if you need to include linked report in the exported result file.
    4. Click OK to start exporting.

To export using customized layout:

  1. In the Export dialog, select Customize Layout from the Layout drop-down list. You can also select an existing customized layout to modify it.

    Export dialog - Customize Layout

  2. Check the Show Component Title option if you want to show the library component titles in the exported result.
  3. Click the Page Setup button Page Setup button on the toolbar to set the page properties of the exported result file such as page size and margins in the Page Setup dialog.
  4. In the Design tab, customize the layout of the library components by making use of the following operations. The library components are arranged using a tabular with each cell holding one component.
  5. Click the View tab to preview the layout. You can browse the pages and zoom in/out by clicking the corresponding toolbar buttons.

    If you are satisfied with the layout and want to save it for future use, click Save button or Save As button on the toolbar, then in the Save As dialog, provide a name for the layout and click OK. The saved customized layouts will be available in the Layout drop-down list to all users who can access the dashboard. For each of them, you can edit its name or delete it using the two buttons - Rename and Delete - appearing on the right when the mouse hovers over the layout item in the drop-down list.

    Layout Drop-down List

  6. Click Export button, then in the Export dialog, do the last setting and start exporting.

Tip: If you just want to export a single library component, there is a more convenient way.

  1. Click Options Icon on the component title bar and select Export from the drop-down menu. The Export dialog appears.

    Export dialog

  2. In the dialog, choose the format to which you want to export the library component, then click OK.

However, using this way, if the library component is linked with other reports, you cannot control whether to generate the linked reports while exporting. The linked reports will not be included in the exported result.

Printing the library components

To print the library components in a dashboard, click the Print button Print button on the toolbar, or click the Options button Options button on the toolbar and select Print from the option list to open the Print dialog, then:

To print using system layout:

  1. In the Print dialog, select System Layout from the Layout drop-down list.

    Print dialog - System Layout

    The preview of the layout appears in the preview panel on the right. Sometimes you may find that the layout is a little different from what you see in the dashboard.

  2. In the Resources box, select the library components you want to print. By default all printable library components are listed and selected.
  3. The order of the library components in the Resources box determines the order in which they will be printed. Click Move Down button and Move Up button to adjust the printing order if necessary.
  4. Check the Show Component Title option if you want to show the library component titles in the printed result.
  5. From the Printer drop-down list, select the printer to use to print the library component result. All the printers the web browser can access will be listed here. If you want to download the result to a PDF or HTML file and then use your local printer to print the file, select Save as PDF or Save as HTML.
  6. If a printer is selected, click the Properties link to specify the printing properties in the Printer Properties dialog.
  7. Define the number of copies you want to print accordingly.
  8. Specify the page orientation and paper type for the printed result file. If necessary, click the More Settings link to set more page properties such as paper size and margins in the Page Setup dialog.
  9. Click the page navigation buttons on the toolbar of the preview panel to browse the pages if you want.
  10. Click Print button on the toolbar to start printing. If Save as PDF or Save as HTML is selected in the Printer drop-down list, the result file of the library components is then opened in an associated program with which you can print the result to a printer.

To print using customized layout:

  1. In the Print dialog, select Customize Layout from the Layout drop-down list. You can also select an existing customized layout to modify it.

    Print dialog - Customize Layout

  2. Do the same as described in steps 4 to 8 of the above system layout procedure.
  3. In the Design tab, customize the layout of the library components, then preview it in the View tab. For how to customize the layout, click here.
  4. Click Print button on the toolbar to start printing. If Save as PDF or Save as HTML is selected in the Printer drop-down list, the result file of the library components is then opened in an associated program with which you can print the result to a printer.

BackPrevious Page Next PageNext