NWPSPdfExportDevice(3nw)
NWPSPdfExportDevice --
exports device to .PDF file from database
Synopsis
#include <nwps_pdf.h>
or
#include <nwpsrv.h>
NWCCODE NWAPI NWPSPdfExportDevice
(WORD connType,
DWORD connID,
char NWFAR
fileName,
char NWFAR
deviceName);
Description
The parameters are as follows:
- connType
-
(IN) Specifies either NWPS_BINDERY_SERVICE,
NWPS_BINDERY_SERVICE_PRE_40, or NWPS_DIRECTORY_SERVICE.
- connID
-
(IN) Specifies the connection or context identifier.
- fileName
-
(IN) Points to the name of the .PDF file.
- deviceName
-
(IN) Points to the name of the device to export.
Return values
- 0x0000
-
NWPSE_SUCCESSFUL
- 0x7774
-
NWPSE_ERROR_OPENING_DB
- 0x7775
-
NWPSE_ERROR_READING_DB
- 0x7777
-
NWPSE_ERROR_WRITING_DB
- 0x777C
-
NWPSE_OUT_OF_MEMORY
Notices
The fileName should be in one of the following forms:
\\file servervolumepathfile name[.PDF] volume:pathfile name[.PDF]
If fileName is NULL, the file
device name[.PDF] is created in the local directory.
Every .PDF export file also has a date code associated with it.
The date is set when the file is created. See
NWPSPdfSetImportDate(3nw)
and
NWPSPdfGetImportDate(3nw).
Services
Print Server
References
NWPSPdfGetImportDate(3nw),
NWPSPdfImportDevice(3nw),
NWPSPdfSetImportDate(3nw),
NWCCOpenConnByName(3nw),
NWDSCreateContext(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.