_RG_DBReport, _RG_ManageSharedReports, _RG_NewBlankReport, _RG_NewReportFromTemplate, _RG_NewTemplate, _RG_Open, _RG_OpenReportReadOnly, _RG_Print, RG_CloseWindow, RG_CopyCurrentImage, RG_ExportToImage, RG_ExportToPDF, RG_GetROIDByCustomID, RG_GetROIDs, RG_InitUndoManager, RG_MeasExport, RG_NewReportFromTemplate, RG_Open, RG_OpenFromBinBuffer, RG_OpenReportReadOnly, RG_Print, RG_SaveToFile, RG_ScriptDS_SetROAttribute_Double, RG_ScriptDS_SetROAttribute_RGBA, RG_ScriptDS_SetROAttribute_String, RG_ScriptDS_SetROAttribute_Uint, RG_SetGraphData, RG_SetROAttribute_Double, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetROAttribute_String, RG_SetROAttribute_Uint, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Uint
“visible” (boolean): visibility of the whole report object
“locked” (boolean): is the user allowed to manipulate the report object
“read-only” (boolean): is the text within the text box report object for reading only (note that it is still possible to move or resize text boxes which are read-only)
“word-wrap” (boolean): is the text content word-wrapped rather than clipped
“visible” (boolean): visibility of the whole report object
“locked” (boolean): is the user allowed to manipulate the report object
“read-only” (boolean): is the text within the text box report object for reading only (note that it is still possible to move or resize text boxes which are read-only)
“word-wrap” (boolean): is the text content word-wrapped rather than clipped
“visible” (boolean): visibility of the whole report object
“locked” (boolean): is the user allowed to manipulate the report object
“read-only” (boolean): is the text within the text box report object for reading only (note that it is still possible to move or resize text boxes which are read-only)
“word-wrap” (boolean): is the text content word-wrapped rather than clipped
This function runs the File > Report > Send Current Image to Report command.
Description
RG_CopyCurrentImage();
The function transfers the current image to the center of the current report or report template.
Description
RG_ExportToImage( char *RG_ImageFile
, intRG_Quiet
);
Exports a report from the Report Generator into an image format.
Description
RG_ExportToPDF(
char RG_PDFFile
);
This function exports the current report to a pdf file.
Parameters
Note
This function is called from the Export to PDF... command (Report Generator window, File menu).
Description
RG_GetROIDByCustomID(
char *RG_CustomROID
);
Returns the ID of the report object with the specified custom ID.
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs
Description
RG_GetROIDs( int *RG_TROIDBuffer
, dwordRG_TROIDBufSizePtr
, char *RG_ROClassName
);
Returns a list of IDs of report objects having the specified type (class name of an object).
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDByCustomID
Description
RG_InitUndoManager();
Deletes all undo steps in the Report Generator. Typically used at the end of a macro.
Description
RG_MeasExport(
int RG_MeasType
);
This function creates a report of a specified measurement type (the Report module required).
Interactive command to this function: File > Report > New Report from Template > Browse
Description
RG_NewReportFromTemplate(
char RG_Template
);
This function generates a report from the specified template. This function cannot be used for creating database reports or file listings.
Note
This function is called from the New Report from Template command (Report menu). There is also an interactive function _RG_NewReportFromTemplate.
See Also
_RG_NewReportFromTemplate
This function runs the File > Report > Recent Files command.
Interactive command to this function: File > Report > Open
Description
RG_Open(
char RG_Filename
);
This function opens the specified report, report template or exported PDF document.
Parameters
Note
This function is called from the Open... command (Report menu). An interactive equivalent is the _RG_Open function.
See Also
_RG_Open
Description
RG_OpenFromBinBuffer( byte *RG_DataBuffer
, dword *RG_BufferSize
);
Defines the buffer for the Report Generator.
Description
RG_OpenReportReadOnly(
char *RG_Filename
);
This function opens a report (*.rpt) in read-only mode.
Description
RG_Print();
This function prints the current report on the default printer.
Note
If you want to select for printing other printer than default, use the _RG_Print function.
See Also
_RG_Print
Description
RG_SaveToFile(
char *RG_Filename
);
This function saves current the report or the report template to the specified file. Reports should be stored with the RPT extension, while report templates with the RTT extension. If you disobey this rule, correct extension will be added automatically.
Parameters
Note
This function is called from the Save As... command (Report Generator window, File menu).
See Also
RG_Open
Description
RG_ScriptDS_SetROAttribute_Double( char *RG_AttrName
, doubleRG_AttrValDouble
);
Sets the data source double type report object attributes used in a macro data source.
RG_AttrName is the name of the attribute (e.g. “line-width” in pixels, “font-size” in points).
Parameters
See Also
RG_ScriptDS_SetROAttribute_String, RG_ScriptDS_SetROAttribute_Uint, RG_ScriptDS_SetROAttribute_RGBA
Description
RG_ScriptDS_SetROAttribute_RGBA( char *RG_AttrName
, intRG_AttrValRed
, intRG_AttrValGreen
, intRG_AttrValBlue
, intRG_AttrValAlpha
);
Sets the data source color type report object attributes used in a macro data source.
RG_AttrName is the name of the attribute (e.g. “color” for the color of main features such as lines, “bgcolor” for the background/filling color, “text-color” for the color of the text).
Parameters
See Also
RG_ScriptDS_SetROAttribute_String, RG_ScriptDS_SetROAttribute_Double, RG_ScriptDS_SetROAttribute_Uint
Description
RG_ScriptDS_SetROAttribute_String( char *RG_AttrName
, char *RG_AttrValString
);
Sets the data source string type report object attributes used in a macro data source.
RG_AttrName is the name of the attribute (e.g. “plain-text” for the text content).
Parameters
See Also
RG_ScriptDS_SetROAttribute_Double, RG_ScriptDS_SetROAttribute_Uint, RG_ScriptDS_SetROAttribute_RGBA
Description
RG_ScriptDS_SetROAttribute_Uint( char *RG_AttrName
, dwordRG_AttrValUint
);
Sets the integer or boolean type report object attributes used in a macro. In case of the boolean values use 1 for true and 0 for false.
RG_AttrName is the name of the attribute. For example:
Parameters
See Also
RG_ScriptDS_SetROAttribute_String, RG_ScriptDS_SetROAttribute_Double, RG_ScriptDS_SetROAttribute_RGBA
Description
RG_SetGraphData( char *RG_GraphTitle
, intRG_DataCount
, double *RG_DoubleData
);
Sets the data for the graph in the report or template opened in the Report Generator. The graph should be already prepared for the value range of the data, by setting minimum and maximum values, bin size, etc. This function only sets the data. The graph is identified by its title.
Description
RG_SetROAttribute_Double( intRG_ROID
, char *RG_AttrName
, doubleRG_AttrValDouble
);
Sets double type report object attributes used in a macro.
RG_AttrName is the name of the attribute (e.g. “line-width” in pixels, “font-size” in points).
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Uint, RG_SetROAttribute_RGBA, RG_SetROAttribute_ISize, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetROAttribute_ISize( intRG_ROID
, char *RG_AttrName
, intRG_IWidth
, intRG_IHeight
);
Sets the integer size type report object attributes used in a macro.
RG_AttrName is the name of the attribute (e.g. “table-size”).
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetROAttribute_RGBA( intRG_ROID
, char *RG_AttrName
, intRG_AttrValRed
, intRG_AttrValGreen
, intRG_AttrValBlue
, intRG_AttrValAlpha
);
Sets the color type report object attributes used in a macro.
RG_AttrName is the name of the attribute (e.g. “color” for the color of main features such as lines, “bgcolor” for the background/filling color, “text-color” for the color of the text).
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetROAttribute_String( intRG_ROID
, char *RG_AttrName
, char *RG_AttrValString
);
Sets the string type report object attributes used in a macro.
RG_AttrName is the name of the attribute (e.g. “plain-text” for the text content).
Parameters
See Also
RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetROAttribute_Uint( intRG_ROID
, char *RG_AttrName
, dwordRG_AttrValUint
);
Sets integer or boolean type report object attributes used in a macro. In case of boolean values use 1 for true and 0 for false.
RG_AttrName is the name of the attribute. For example:
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetTableCellROAttribute_Double( intRG_ROID
, intRG_IColumn
, intRG_IRow
, char *RG_AttrName
, doubleRG_AttrValDouble
);
Sets the double type report object attributes to a table cell.
RG_AttrName is the name of the attribute (e.g. “line-width” in pixels, “font-size” in points).
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetTableCellROAttribute_RGBA( intRG_ROID
, intRG_IColumn
, intRG_IRow
, char *RG_AttrName
, intRG_AttrValRed
, intRG_AttrValGreen
, intRG_AttrValBlue
, intRG_AttrValAlpha
);
Sets the color type report object attributes to a table cell.
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetTableCellROAttribute_String( intRG_ROID
, intRG_IColumn
, intRG_IRow
, char *RG_AttrName
, char *RG_AttrValString
);
Sets the string type report object attributes to a table cell.
RG_AttrName is the name of the attribute (e.g. “plain-text” for the text content).
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_Uint, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
RG_SetTableCellROAttribute_Uint( intRG_ROID
, intRG_IColumn
, intRG_IRow
, char *RG_AttrName
, dwordRG_AttrValUint
);
Sets integer or boolean type report object attributes used in a macro. In case of boolean values use 1 for true and 0 for false.
RG_AttrName is the name of the attribute. For example:
Parameters
See Also
RG_SetROAttribute_String, RG_SetROAttribute_Double, RG_SetROAttribute_Uint, RG_SetROAttribute_ISize, RG_SetROAttribute_RGBA, RG_SetTableCellROAttribute_String, RG_SetTableCellROAttribute_Double, RG_SetTableCellROAttribute_RGBA, RG_GetROIDs, RG_GetROIDByCustomID
Description
_RG_DBReport(
int RG_Index
);
This function starts creating a database report or file listing or report template based on the selection of the Organizer layout.
Parameters
Note
This function is for internal use only.
This function runs the File > Report > Manage Shared Reports command.
Description
_RG_ManageSharedReports();
This function runs the File > Report > New Blank Report command.
Description
_RG_NewBlankReport();
This function creates a new report. The function opens the Report Generator window.
See Also
_RG_NewReportFromTemplate, _RG_NewTemplate
This function runs the File > Report > New Report from Template > Browse command.
Description
_RG_NewReportFromTemplate();
This function creates a report from a template. The function opens the Select template window.
See Also
_RG_NewBlankReport, _RG_NewTemplate
This function runs the File > Report > New Template command.
Description
_RG_NewTemplate();
This function _RG_NewTemplate creates a new report template. The function opens the Report Generator window with a new untitled template.
See Also
_RG_NewBlankReport, _RG_NewReportFromTemplate
This function runs the File > Report > Open command.
Description
_RG_Open();
This function opens a report or report template. The function displays the Open dialog box.
See Also
_RG_NewBlankReport, _RG_NewReportFromTemplate, _RG_NewTemplate
Description
_RG_OpenReportReadOnly();
This function opens a standard dialog where it is possible to select a report (*.rpt) to open. This report will be read-only.
Description
_RG_Print();
This function prints the current report. The function displays the Print dialog box.
See Also
RG_Print