we are using SetDocFileProps to set printer-settings and we are not using any DefaultPrinter settings and no Locks (Document-Title is unique).
Calling following method always returns "-1", whatever with which parameters.
Code: Select all
auto lErr = SetDocFileProps(globalData->hDriverHandle, szAnsiTitle, uFlags, szAnsiFilePath, szAnsiFileName); //lErr is -1
So I would like to know, why -1 is returned by this function, because docu says, that the function returns 0 if succeeded.
Thanks and Best Regards