Dear Ron,
thank you for your note.
Following is an example code which is based on our example (LLSample.PRJ)
Changes in the LL20.CC file:
Add to FUNCTION LoadExternLibrary:
EXTERN CLONG LlXSetParameter(CLONG, CLONG, CSTRING, CSTRING, CSTRING) CMLL20.DLL FROM "LlXSetParameterA"
Modify FUNCTION PrintList
after:
nRet=0
nDest = LL_DESTINATION_PRV
add:
LlXSetParameter((this.hJob),LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", 'Export.Path', "c:\temp\");
LlXSetParameter((this.hJob),LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", 'Export.File', "export.pdf");
LlXSetParameter((this.hJob), LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", 'Export.Quiet', '1');
LlXSetParameter((this.hJob),LL_LLX_EXTENSIONTYPE_EXPORT, "PDF", 'Export.ShowResult', '0')
change in LlPrintWithboxStart
LL_PRINT_USERSELECT,;
LL_BOXTYPE_NORMALWAIT,;
to
LL_PRINT_Export,;
LL_BOXTYPE_NONE,
After LlPrintWithboxStart
add:
LlPrintSetOptionString((this.hJob),LL_PRNOPTSTR_EXPORT, "PDF");
and uncomment followed lines:
/*
IF this.HideCopies
LlPrintSetOption((this.hJob), LL_PRNOPT_COPIES, LL_COPIES_HIDE)
ENDIF
IF this.HidePages
LlPrintSetOption((this.hJob), LL_OPTION_PAGE, LL_PAGE_HIDE)
ENDIF
//D: Default-Ziel setzen
//E: Set default target
LlPrintSetOption((this.hJob), LL_PRNOPT_PRINTDLG_DEST, nDest)
//D: Druckauswahldialog anzeigen
//E: Show print options dialog
nRet=LlPrintOptionsDialog((this.hJob),;
(this.ParentHandle),;
IIF(_app.language="DE","Druckereinstellungen","Configure printing parameters"))
LlPrintSetOption((this.hJob),LL_OPTION_PAGE,1)
*/
Thats it, the ExportQuiet Option and LL_BOXTYPE_NONE will make your export without user intervention
Kind regards
Erdal Alacali
technical support
combit GmbH