"Print emergency sheet" broken on Windows 7?
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
I upgraded to v2.37 (64bit) on Windows 7 (latest patch level) and tried to use the function "Print emergency sheet" under "Database tools" - unfortunately nothing happens if I selct this entry (tried several times).
Strange thing is, that it worked on another Windows10 device. Are there any known issues with Win7?
I use KeePass 2.37 (there is no separate 64bit version, AFAIK) on machines running 64bit Win7 (among other OSs), and I have no problem with this. Are you able to use the normal KeePass File | Print function on this setup?
yes, using File / Print function on this setup opens the dialog to choose a printer (and yes I also use 2.37 32bit, as there is no 64bit version - mixed this up with another software I also use).
Please check what the "(Default)" value in the following registry key is on your Windows 7 PC:
HKEY_CLASSES_ROOT\htmlfile\shell\print\command
Thanks and best regards,
Dominik
The value was
"C:\Program Files (x86)\Microsoft Office\Office12\msohtmed.exe" /p %1- after reading https://support.microsoft.com/en-us/help/274527/cannot-print-file-with--htm-extension-from-windows-explorer-by-right-c I changed it torundll32.exe C:\windows\system32\mshtml.dll,PrintHTML "%1"and now the "Print emergency sheet" function also works on Win7. Ticket can be closed - thanks for your help!Thanks for the info/research!
I've now added a workaround for this Office bug (for both KeePass 1.x and 2.x): if KeePass detects the
msohtmed.execommand line, it uses themshtml.dllcommand line instead.Here are the latest development snapshots for testing:
KeePass 1.x: https://keepass.info/filepool/KeePass_171110_1.zip
KeePass 2.x: https://keepass.info/filepool/KeePass_171110.zip
Thanks and best regards,
Dominik