Print error 0x80040003
-
@Kevin-Hubbard said in Print error 0x80040003:
When I try to print, this error is displayed:
So are you suggesting this error ONLY occurs when attempting to print from Notepad++. Since Notepad++ uses the same print driver (it’s the Windows driver that’s used) that every other application on your system is using that seems a bit unlikely.
Maybe a bit more info, such as is it every file within Notepad++, only some types of files?
Terry
-
I just discovered that configuring Win 11 to run Notepad++ “As Administrator” solved the problem.
-
@Kevin-Hubbard I receive the same error. Also an HP printer. Printer works in every other Windows 11 app; and like you, running it as admin allows me to print. I’ve uninstalled the printer, added it back, and still doesn’t resolve the issue.
When it’s run as admin, the print dialog is the older Windows style dialog, so might have something to do with it working.
-
-
@Michael-Farley I ran into the same problem upgrading from Windows 10 Pro to Windows 11 Pro.
Running Notepad++ as administrator does solve the problem, but it’s a clumsy fix - you have to give permission to run the program, and you don’t get the print preview.
Any other fix for this problem?
-
@Paul-Laba I too have this issue. However, I work for a company that does not grant me as the end user admin rights to my laptop…Therefore, I am unable to print from notepad++ period. Yes, there are work arounds for this too, but as you can imagine, this issue can severely impact productivity.
Is anyone aware of whether or not NP++ might be investigating a potential fix for this issue?
Thanks all.
-
This issue is much more likely to be resolved if you post an issue on the GitHub repo.
Since the core developers may not have access to the hardware that would allow them to replicate the issue and contribute a fix, it may be incumbent on someone who (a) can program in C++ and (b) can replicate the issue to solve the problem.
-
@Paul-Laba & @Tim-Bonney
Is your printer HP also? -
-
Thank you @xomx - While I was not getting printer errors I did not care for the new print dialog box.
Using
reg add "HKCU\Software\Microsoft\Print\UnifiedPrintDialog" /v "PreferLegacyPrintDialog" /d 1 /t REG_DWORD /f
as suggested when I followed the links worked. I was surprised that I did not need to restart Notepad++. I did a Ctrl-P, saw the “modern” print dialog box, added the PreferLegacyPrintDialog thing from a command prompt, and when I did Ctrl-P again from Notepad++ I got the legacy print dialog box.
-
@mkupper
It probably works so that when N++ calls the printing WINAPI, that system call always checks for the above RegKey first and then adapts the appearance of the Print-dlg.Because I could not reproduce the problem myself, I can only guess what a real problem is. Because the printing basically works (with admin-rights), perhaps the MS will be able to fix it in a later build.
-
-