@Qoato wrote:
Hi, I am here again because my code, that worked fine until yesterday started to give errors after the update This is the copy of the registry 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.TryStartApplication: Finding spooled jobs 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Conversion.Jobs.SpooledJobFinder.GetJobs: Looking for spooled jobs in 'C:\Users\brosso\AppData\Local\Temp\PDFCreator\Spool' 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MainWindowStart.StartApplication: Starting main window 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Starting MainWindowThread thread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread MainWindowThread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: TryStartApplication: True 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: Starting update check thread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread UpdateThread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.SendMessageOrStartApplication: Starting Cleanup thread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Starting CleanUpThread thread 2016-11-30 16:03:04.1903 [Debug] 6292-12 (UpdateThread) pdfforge.PDFCreator.UI.ViewModels.Assistants.Update.UpdateAssistant.UpdateThread: Launched UpdateThread 2016-11-30 16:03:04.1903 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.StartSynchronizedThread: Adding thread CleanUpThread 2016-11-30 16:03:04.1903 [Debug] 6292-12 (UpdateThread) pdfforge.PDFCreator.UI.ViewModels.Assistants.Update.UpdateAssistant.Update: Update period did not pass. Next Update is set to: 06/12/2016 16:51:51 2016-11-30 16:03:04.2057 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Core.Startup.AppStarts.MaybePipedApplicationStarter.Shutdown: Waiting for all threads to finish 2016-11-30 16:03:04.2057 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.WaitForThreads: Waiting for all synchronized threads to end 2016-11-30 16:03:04.2057 [Debug] 6292-1 (ProgramThread) pdfforge.PDFCreator.Utilities.Threading.ThreadManager.WaitForThreads: 2 Threads remaining My code:
Application.ActivePrinter = Sheets("DDT").Range("N2") NrJobs = 1 If CMR = True Then NrJobs = NrJobs + 1 Worksheets("DDT").PrintOut Background = False, From:=1, To:=Pags, Copies:=1 PDFCreatorQueue.WaitForJob (20) Set PrintJob = PDFCreatorQueue.NextJob If CMR = True Then Workbooks("CMR.xls").Sheets("CC").Range("R5") = "" Workbooks("CMR.xls").Sheets("CC").PrintOut Background = False, From:=1, To:=1, Copies:=1 PDFCreatorQueue.WaitForJob (20) Set PrintJob = PDFCreatorQueue.NextJob End If
This code should print a page from the sheet "DDT" and the page "CC" from the workbook "CMR", the result is simply the "DDT" page without the "CMR".
From what I understand, maybe, the documents are going on 2 different instances of the program?
Any idea?
Thank you.EDIT: Hi.
This morning I booted th PC and it seems it started working fine.
Sorry
Posts: 1
Participants: 1