#g4ggcp_print
*//////////////////////////////////////////////////////////////*
* #g4ggcp_print - Print To Cloud Printer *
* *
* Output: *
* out_fileID - The Google ID of the file if the option to *
* upload the file to Google Drive was taken. * *
* out_errMsg - The error message (if error exists). *
* *
* Returns: *
* -1 for error, 0 print successful *
* *
* Settable Variables ([r]=required) *
* id - Google ID [r] *
* printer_key - The printer key [r] *
* file - The file or URL to print [r] *
* filename - The name of the file (*FILE) *
* content_type - The content type of the file (*FILE) *
* title - The Title of the print job (G4GGCP Job) *
* orientation - The orientation of the file (*PORTRAIT) *
* ccsid - The CCSID to use (1252) *
* debug - Turn on Debug (*NO, *YES) *
* debug_file - The debug file name. *
* (/tmp/g4g_[id]_listPrintersDebug.txt) *
* *
*//////////////////////////////////////////////////////////////*
D #g4ggcp_print...
D PR 10i 0
D out_fileID 256 Options(*NOPASS)
D out_errMsg 256 Options(*NOPASS)
#g4ggcp_print will print the specified document, or document specified at a URL, to your Google Cloud Printer.
Returns: 0 for success, -1 for error.
Optional Parameters:
- File ID (output) - The File ID of the file if the option to save the file to Google Docs was used.
- Error Message (output) - Error message
Settable Variables (use #g4ggcp_setValue):
- id (required) - Your Google ID
- printer_key (required) - The printer key used to identify the printer to print to. This should match the value of field GGPPRTKEY in file G4GPRTPF.
- file (required) - The fully qualified path to the file you wish to print (in the IFS) or the URL of an existing document on the web.
- filename - The name of the file to print. Defaults to the file name specified in the File parameter.
- content_type - the content type of the file being printed. This defaults to the content type of the file being printed.
- title- The title of the print job as it will appear in your Google Cloud Print status page. This defaults to "G4GGCP Job"
- orientation - Specify *PORTRAIT (default) for portrait or *LANDSCAPE for landscape.
- ccsid - The CCSID to use. The default is 1252.
- debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.
- debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4g_[id]_cloudPrintDebug.txt