Print

Kalipso - Form - Actions - Actions Description - Group Others - Print

Print a report on a specified printer

Action available for the following operating systems:

Parameters

General

  • Printer <unquoted string> - The name of the printer to use.

  • Layout/PDF <string> - The name of the file that contains the layout or the PDF file to use in this printing action.

  • Printer CE License <string> - If the user uses a Printer CE could specify where the license.

Details

If the user are using a Printer Type that generates a file (PDF, BMP, etc.), the user must define the file to create:

  • Filename <string> - The name of the file to be created.

For image printers (BMP, JPG, etc.) an underscore and a number will be added to the file name, and it will be produced a file for each printout page. For example if a report prints 3 pages it will produce 3 files named <Filename>_001.BMP, <Filename>_002.BMP, <Filename>_003.BMP. If there is only 1 page, it will produce 1 file named <Filename>_001.BMP.

If the user are using Kalipso in Windows Desktop, the user must define here the Windows Printer. There are three options:

  • Manual Selection - The user define later the printer to use.

  • Default Printer - The user is using the default printer.

  • Specify Printer <string> - The user specify the printer to use.

For Android and Win10 it is always Manual Selection mode.

Parameters

  • Variable <unquoted string> - The variable to be printed.

  • Type <unquoted string> - The type of the variable to be printed. The possible values are:

    • String

    • Numeric.

  • Value <string> or <numeric> - The value of the variable to be printed.

To use this action, user must create a Printer (Project->Printers).

To print a PDF file, just specify the PDF path in the layout parameter.

Printing a PDF file is supported in Android, iOS and Win10, and it is only supported if the target printer is a graphical printer, this is, Native printers and Text printers are not supported. On Win10 PDF file cannot be printer to a PDF printer.

In Windows KClients the PDF format does not support Bold. The PDF format has 14 fonts defined has the base fonts that any PDF reader can display, but it is limited to the Latin Charset.

So when you select a font on the report editor, if it is the name of one of the 14 base fonts, Kalipso will use them, if not, Kalipso will try to load a “TTF” file for that font, if it is not possible Kalipso will default to base font “Times-Roman”. These are the 14 fonts that are base for any PDF:

  • Courier

  • Courier-Bold

  • Courier-Oblique

  • Courier-Bold

  • Oblique

  • Helvetica

  • Helvetica-Bold

  • Helvetica-Oblique

  • Helvetica-BoldOblique

  • Times-Roman

  • Times-Bold

  • Times-Italic

  • Times-BoldItalic

  • Symbol

  • ZapfDingbats

So, in a PDF if you want to use “Bold” you have to use a font that is bold like “Courier-Bold” or have a TTF file for a bold font.

Last updated