looks like the logfile of pdfredirect does not log anything 337,573707,"AX",16,"***************************************" 337,573717,"AX",17," AN UNEXPECTED ERROR HAS OCCURED in ChangeSettings" 337,573727,"AX",18,"***************************************" 337,573736,"AX",19," - DLL Error Number = 5 - Toegang geweigerd. " 337,573746,"AX",20,"End ChangeSettings" 337,581681,"AX",0,"" 337,581690,"AX",1,"" 337,581700,"AX",2,"------------------------------------------------------------" 337,581710,"AX",3,"START LOGGING: 2-12-2012 2:00:29" 337,866134,"AX",0,"" 337,866144,"AX",1,"" 337,866153,"AX",2,"------------------------------------------------------------" 337,866163,"AX",3,"START LOGGING: 2-12-2012 2:05:13" 337,866175,"AX",4,"Start EnumForms" 337,866189,"AX",5,"Number of Forms Found: 313" 337,866199,"AX",6,"No. of Forms Found: 0" 337,883340,"AX",0,"" 337,883350,"AX",1,"" 337,883360,"AX",2,"------------------------------------------------------------" 337,883370,"AX",3,"START LOGGING: 2-12-2012 2:05:30" 337,883388,"AX",4,"Start MyPdfrPrinterExists" 337,883397,"AX",5,"Start EnumeratePrinters" 337,883411,"AX",6,"End EnumeratePrinters" 337,883421,"AX",7,"Completed MyPdfrPrinterExists" 337,982041,"AX",0,"" 337,982059,"AX",1,"" 337,982069,"AX",2,"------------------------------------------------------------" 337,982078,"AX",3,"START LOGGING: 2-12-2012 2:07:09" 337,982182,"AX",0,"" 337,982192,"AX",1,"" 337,982202,"AX",2,"------------------------------------------------------------" 337,982212,"AX",3,"START LOGGING: 2-12-2012 2:07:09" 337,982222,"AX",4,"Start GetPrinterInfo2" 337,982232,"AX",5,"Open Printer BatchPrinter..." 337,982245,"AX",6,"...Return = 1" 337,982255,"AX",7,"pNeeded = 1664" 337,982266,"AX",8,"Recover Printer Info" 337,982276,"AX",9,"End GetPrinterInfo2" 337,982286,"AX",10,"Aborted GetPrinterInfo2 = 1" 337,982369,"AX",0,"" 337,982379,"AX",1,"" 337,982389,"AX",2,"------------------------------------------------------------" 337,982399,"AX",3,"START LOGGING: 2-12-2012 2:07:09" 337,982407,"AX",4,"Start SetPrinterInfo2" 337,982415,"AX",5,"Open Printer BatchPrinter..." 337,982426,"AX",6,"...Return = 1" 337,982433,"AX",7,"Set Printer Info...BatchPrinter" 337,1030854,"AX",0,"" 337,1030863,"AX",1,"" 337,1030871,"AX",2,"------------------------------------------------------------" 337,1030879,"AX",3,"START LOGGING: 2-12-2012 2:07:58" 337,1030889,"AX",4,"Start EnumForms" 337,1030901,"AX",5,"Number of Forms Found: 313" 337,1030909,"AX",6,"No. of Forms Found: 0" 337,1034974,"AX",0,"" 337,1034982,"AX",1,"" 337,1034990,"AX",2,"------------------------------------------------------------" 337,1035008,"AX",3,"START LOGGING: 2-12-2012 2:08:02" 337,1035030,"AX",4,"Start ShowPrinterProperties" 337,1035038,"AX",5,"fill the PRINTER_INFO_2 struct" 337,1035061,"AX",6,"MyPrinterDefaults.DesiredAccess = PRINTER_ACCESS_USE" 337,1035069,"AX",7,"OpenPrinterW" 337,1035081,"AX",8,"pNeeded9 = 1092" 337,1035090,"AX",9,"GetPrinter = 1" 337,1035098,"AX",10,"Matching Printer Not Found." 337,1035112,"AX",11,"Doc Prop pNeeded = 1024" 337,1035120,"AX",12,"SetValue = 1" 337,1049989,"AX",13,"AdvancedDocumentProperties = 1" 337,1050013,"AX",14,"***************************************" 337,1050025,"AX",15," AN UNEXPECTED ERROR HAS OCCURED in ChangeSettings" 337,1050033,"AX",16,"***************************************" 337,1050044,"AX",17," - DLL Error Number = 5 - Toegang geweigerd. " 337,1050053,"AX",18,"End ChangeSettings" 337,1065409,"AX",0,"" 337,1065430,"AX",1,"" 337,1065438,"AX",2,"------------------------------------------------------------" 337,1065446,"AX",3,"START LOGGING: 2-12-2012 2:08:32" 337,1070010,"AX",0,"" 337,1070018,"AX",1,"" 337,1070026,"AX",2,"------------------------------------------------------------" 337,1070034,"AX",3,"START LOGGING: 2-12-2012 2:08:37" 337,477676,"AX",0,"" 337,477684,"AX",1,"" 337,477693,"AX",2,"------------------------------------------------------------" 337,477701,"AX",3,"START LOGGING: 2-12-2012 2:19:06" 337,142648,"AX",0,"" 337,142677,"AX",1,"" 337,142749,"AX",2,"------------------------------------------------------------" 337,142781,"AX",3,"START LOGGING: 2-12-2012 2:28:29" 337,620415,"AX",0,"" 337,620453,"AX",1,"" 337,620499,"AX",2,"------------------------------------------------------------" 337,620515,"AX",3,"START LOGGING: 2-12-2012 2:36:26" where the START LOGGING is it should log something in my own logfile it seems it cannot create the object AddLog ("Voor creeren van pdfO") Set pdfO = New PDF_reDirect_v25002.Batch_RC_AXD AddLog ("Na creeren van pdfO") If pdfO.LastErrorNumber <> 0 Then AddLog "PrintUtil kon niet gecreëerd worden! " & Format(Date, "dd-mm-yyyy nn:nn") & pdfO.LastErrorDescription & " Error Number =" & Str$(pdfO.LastErrorNumber) & " DLL Error Number =" & Str$(pdfO.ErrorLastDLL) End If If Err.Number <> 0 Then AddLog "Error na Utility_Open_PDF leeg " & Err.Description & " " & Err.Number Err.Clear End If
it logs: "Voor creeren van pdfO" (before creating the object), but never ("Na creeren van pdfO" (after creating). So it must crash in the meantime??
|