Bug #53031 Print Preview - Parameter is not valid
Submitted: 21 Apr 2010 16:45 Modified: 17 May 2010 12:59
Reporter: Kai Sautter (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.19 OS:Windows (XP)
Assigned to: CPU Architecture:Any
Tags: qc

[21 Apr 2010 16:45] Kai Sautter
Description:
Print Preview reports error: Parameter is not valid.

Page settings are A3 Landscape. The default printer does not support printing on A3. If a printer supporting A3 is set as default printer, the error does not occur. Neither does it occur, if the page size is reduced to A4. Changing the printer requires either changing the Windows default printer or printing to the destination printer prior to using the print preview functionality.

How to repeat:
Set Page settings to a page size larger than the page size supported by the selected printer (default printer). Call File --> Print Preview

Suggested fix:
The print rendering for print preview should be independent of the actual printer. Fitting to printer margins should only occur after rendering.
[21 Apr 2010 16:49] Kai Sautter
This bug is related to printing EER models.
[22 Apr 2010 5:25] Peter Laursen
I think most/practically all programs (on Windows at least) will use the settings of current default printer for generating print preview. This not only applies to size, but also colors, margin settings, portrait/landscape setting (and driver-level pagination settings, asymmetric margination on odd/even pages etc. if printer driver has such settings).

I also think the Windows API has functions providing the programmer with the settings of current default printer meant for generating print preview. But I am not sure if WB uses it and no idea about other platforms in this respect.

Peter
(not a MySQL person)
[22 Apr 2010 15:53] Valeriy Kravchuk
What printer do you have as default? 

I've tried to set A3 and even A2 on XP with (remote) HP DeskJet 840c (surely not able to print on A3) as default, and I had not got message like yours while checking Print Preview.
[22 Apr 2010 16:24] Kai Sautter
The default printer is a Brother HL 5040 using postscript drivers. The print server is - as far as I know - CUPS on a Linux server.

As this seems thus to be an isolated problem with specific printers or even the specific driver installation on the printer server, I suggest changing the bug severity to S3.
[27 Apr 2010 12:01] MySQL Verification Team
I couldn't repeat this issue too.
[12 May 2010 15:33] Valeriy Kravchuk
Please, check with a newer version, 5.2.21, and inform about the results.
[17 May 2010 12:59] Kai Sautter
In Version 5.2.21 this problem seems to be fixed. I can not reproduce it with this version any more.

Thank you for making the print preview functionality (generally) more stable.