Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GabeS573 opened this issue Mar 2, 2023 · 5 comments
Assignees
Labels
P2 Priority: Medium UI Visual issues affecting the UI (not notation)

Comments

@GabeS573
Copy link

GabeS573 commented Mar 2, 2023

Issue type

UI bug

Bug description

The Print dialog on Windows 11 has multiple issues.

  • It does not show a preview of the document
  • It does not show how many pages the document is
  • If you choose to print a custom page range, the input isn't constrained to pages in the document (although only pages actually in the document will print)
  • The Print dialog window is titled "Printing from Win32 Application. - Print" which is slightly janky
  • The print dialog windows can't be accessed from the taskbar
  • When MuseScore loses focus then gains it again, the main window goes in front of the still-open Print dialog window, sometimes making it look like the Print window closed (combined with the previous issue)

ETA March 11 2023

  • If the score is set up in Landscape, the print dialog still defaults to printing in Portrait, cutting off part of the page entirely. (Tested with an Epson ET-2803 printer)

Steps to reproduce

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

Screenshots/Screen recordings

image

image

Print.Dialog.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.

@Tantacrul Tantacrul added regression MS4 Regression on a prior release UI Visual issues affecting the UI (not notation) labels Mar 2, 2023
@zacjansheski zacjansheski added this to To do in 4.x SHORTLIST via automation Aug 21, 2023
@zacjansheski
Copy link
Contributor

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.

@zacjansheski zacjansheski added P2 Priority: Medium and removed regression MS4 Regression on a prior release labels Aug 21, 2023
@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Mar 20, 2024

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
Copy link

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
Copy link
Contributor

Jojo-Schmitz commented Jul 3, 2024

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

@artoffugue333
Copy link

artoffugue333 commented Jul 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Priority: Medium UI Visual issues affecting the UI (not notation)
Projects
Status: One of the next releases
4.x SHORTLIST
  
To do
Development

No branches or pull requests

6 participants