Hi,
When printing from DLL following code fails in LL12 running XP in VMware seession.
ln_ret := LlSetPrinterInPrinterFile(ln_job, LL_PROJECT_LIST, lc_name, -1, cRemPrPort, cDevMode)
ln_ret := LlPrintStart(ln_job, LL_PROJECT_LIST, lc_name, LL_PRINT_NORMAL)
the same code runs on PC w/o VMWare
Very same code works in LL9 in both scenarios.
here are the logs: LL12:
CMLL12 : 11:54:23.343 000007ec [XPPRT1.dll] LlSetPrinterDefaultsDir(1,‘C:\DOCUME~1\devteam\LOCALS~1\Temp’)
CMLL12 : 11:54:23.359 000007ec [XPPRT1.dll] =0
CMLL12 : 11:54:23.375 000007ec [XPPRT1.dll] LlSetPrinterInPrinterFile(1,2,‘CPC_DetailManifest.LST’,-1,’\DEVTEST03\HPLASERJ’,0x124f6390)
CMLL12 : 11:54:23.390 000007ec [XPPRT1.dll] OpenPrinter(\DEVTEST03\HPLASERJ) fails
CMLL12 : 11:54:23.390 000007ec [XPPRT1.dll] =-18
CMLL12 : 11:54:23.406 000007ec [XPPRT1.dll] LlPrintStart(1,2,‘CPC_DetailManifest.LST’,0x00000100,0)
LL9:
CM32L9:30:28.046 @LlSetPrinterDefaultsDir(1,‘C:\DOCUME~1\devteam\LOCALS~1\Temp’)
CM32L9:30:28.046 =0
CM32L9:30:28.062 @LlSetPrinterInPrinterFile(1,2,‘CPC_DetailManifest.LST’,-1,\DEVTEST03\HPLASERJ,0x124f8958)
CM32L9:30:28.062 =0
CM32L9:30:28.078 @LlPrintStart(1,2,‘CPC_DetailManifest.LST’,0x00000100,0)
The printer is shared and all users have permissions to print, manage printers and manage documents.
List & Label : CMLL12.DLL [12,13,0,0 (07-06-20 16:54)]
Any advice what to try next.
Regards,
Dusan