musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.1k stars 2.62k forks source link

Print dialog has multiple issues on Windows 11 (no preview, no page numbers, window issues, etc.) #16617

Open GabeS573 opened 1 year ago

GabeS573 commented 1 year ago

Issue type

UI bug

Bug description

The Print dialog on Windows 11 has multiple issues.

ETA March 11 2023

Steps to reproduce

  1. Open a score
  2. Go to File > Print or press Ctrl + P
  3. See error.

Screenshots/Screen recordings

image

image

https://user-images.githubusercontent.com/91428485/222299795-101bef67-4e61-4d9e-890a-8a69296d82e6.mp4

MuseScore Version

MuseScore version (64-bit): 4.0.2-230551516, revision: github-musescore-musescore-d23f054

Regression

Yes, this used to work in a previous version of Musescore 4.x

Operating system

Windows 11 Home, version 22H2, OS build 22621.1265

Additional context

Context about "Regression": This used to work in MuseScore 3 and MuseScore 4, but no longer works in EITHER MuseScore 3 or 4, meaning this was likely caused by a Windows update.

I have no idea how much of this issue can actually be fixed on the MuseScore end of if some of this is just janky Windows behavior that can't be fixed by MuseScore.

zacjansheski commented 1 year ago

I don't seen the print preview functioning on Windows 11 previous versions of 4. (Tried in 4.0, 4.01, 4.0.2) MS3 does not show a preview either.

Jojo-Schmitz commented 6 months ago

It is a regression, vs. Mu3 at least Edit: hmm, apparently not, Mu3's print dialog looks the same now, so it may be a regression, but it'd be a Windows one, not a MuseScore one. Still MuseScore might find a way around this?

And all these issue still exists.

On top: printing a score in continuous view doesn't work properly, Mu3 in that case temporarily switched to Page view, Mu4 aparently does not. This part definitlly is a Mu3 regression

In essence the print functionallity is completly useless, only way is to export to PDF and print that.

artoffugue333 commented 2 months ago

A Google search of this issue rendered the following workaround by using legacy Windows 10 . I'm not a coder so am wondering if this fix might be useful in fixing the bug in Musescore?

URL: https://www.google.com/search?q=windows+11+%22printing+from+win32+application%22+no+print+preview&oq=windows+11+%22printing+from+win32+application%22+no+print+preview&gs_lcrp=EgZjaHJvbWUyBggAEEUYOdIBCTI5ODM5ajBqN6gCCLACAQ&sourceid=chrome&ie=UTF-8

Excerpted steps to change registry in Win11:

  1. Restoring the legacy print dialog.
  2. Open the command window
  3. Type reg add “HKCU\Software\Microsoft\Print\UnifiedPrintDialog” /v “PreferLegacyPrintDialog” /d 1 /t REG_DWORD /f
Jojo-Schmitz commented 2 months ago

It does indeed change the print dialog, although that still doesn't have a preview (but at least not an empty one). image

artoffugue333 commented 2 months ago

Good. I didnt want to mess with the registry anyway! Thanks.