Windows – “Print driver host for applications” and why does it slow down the Excel macros

microsoft excelmicrosoft-office-365task-managerwindows

I tested this on multiple Windows 10 computers running the latest version of Excel (365 subscription) with both Bluebeam PDF and Microsoft XPS Document writer set as the default printer and get the same result. However, I can't consistently create it. When I use a macro-enabled Excel files that has some page setup and other formatting code the task manager shows Microsoft Excel (32 bit) and "Print driver host for applications" open and Excel tends to lock up or say not responding. I never get the "has stopped working" error and eventually (meaning several minutes) Excel will come back. Even if I have multiple Excel files open it will just show these two lines under Microsoft Excel (32 bit):

Task manager: Excel and Print driver host for application

If I right click and end the "Print driver host for applications" process manually Excel comes back pretty quickly & also shows all the Excel files that are open:
Task manager: after force stopping Print Driver Host Process

From what I understand Printer driver host for applications is meant to communicate 64 OS printers with the 32 bit office. Is that right? I use application.printcommunications = false in my excel VBA code so wonder if that is causing an issue when I set printcommunications back to true. I'm going to go through my VBA code and comment out all page setup code to see if that helps. As I said before I'm not able to get the Print driver to show in the task manager consistently, it seems to happen sporadically, and lock up my user's computer.

Any more information on what "Printer driver host for applications" does and what causes it to run? Is there a way to prevent it from loading? I just can't seem to find information on what it does and when it does it.

Best Answer

Blockquote Printer driver host for applications is meant to communicate 64 OS printers with the 32 bit office. Is that right?

yes. You are not the one with such problem. Check https://answers.microsoft.com/en-us/msoffice/forum/all/mircosoft-excel-365-pro-plus-hangs-all-the-time/ea49ac30-24ea-48d7-bc66-c95ea172f458?page=1

I advise to test MS Excel without any installed print queues and drivers, software printers can cause the issue.