setReportPrinter

Override the GDC printer configuration used for report generation for the current application (DBPRINT=FGLSERVER).

Syntax

ui.Interface.frontCall("standard", "setReportPrinter",
  [printer], [result])
  1. printer - A string describing the printer to use for report generation.
  2. result - The execution status (TRUE=success, FALSE=error).

Usage

The "setReportPrinter" front call overrides the printer configuration used for report generation for the current application, when using DBPRINT=FGLSERVER.

An empty or null string resets it to the default behavior.

The printer parameter is a string that describes the printer to use for report generation. For example: "moliere, Portrait, A4, 96 dpi, 1 copy, Ascendent, Color, Auto".

Tip: Copy/paste the printer string from the "Report To Printer" printer panel from GDC Monitor.

Alternatively, you can specify "<ASK_ONCE>" , "<ASK_ALWAYS>" , "<USER_DEFINED>" or "<USE_DEFAULT>" " which will perform the corresponding actions.

Example

DEFINE result BOOLEAN
CALL ui.interface.frontCall("standard","setReportPrinter",
        ["moliere, Portrait, A4, 96 dpi, 1 copy, Ascendent, Color, Auto"],
        [result])