Home    Download    Screenshot    Quick Start    Documentation    History

Oxetta Print Report Function

To print a report the application calls the following OXETTA.DLL function:

ANSI version: int PASCAL __stdcall oxiPrintA(char* szReport, COxiCallbackA pfnCallback, char* szPrinter, void** ppParam, char szError[1024]);

UNICODE version: int PASCAL __stdcall oxiPrintW(WCHAR* szReport, COxiCallbackW pfnCallback, WCHAR* szPrinter, void** ppParam, WCHAR szError[1024]);

In the szReport parameter the application provides Oxetta with the file name (with full path) of the report that should be printed

In the pfnCallback parameter, the application provides Oxetta with the pointer to the callback function Oxetta will use to retrieve information from the application. If you do not need to provide Oxetta with a callback function, please pass NULL in this parameter.

The szPrinter contains the name of the printer where the report should be printed, or NULL for the default printer

The ppParam parameter can be used by your application to pass certain information from the function that launches the oxiPreview function and your callback function, and between callback function calls. Oxetta does not use the value of this parameters by itself but carefully passes it to all callback function calls.

szError buffer is used to return the text of the error occured when trying to print the report (if any).

oxiPrint functions return 1 if the report was printed successfully and 0 otherwise.

Next article: Preview Report Function
Oxetta documentation: Documentation Index

 Copyright © Oxetta, 2016