Bug #51924 Workbench beta - Printing works well, but PrintPreview dies
Submitted: 10 Mar 2010 17:04 Modified: 26 Apr 2010 16:37
Reporter: phil smith Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.16 OSS Beta Rev 5249 OS:Windows
Assigned to: Mike Lischke CPU Architecture:Any
Tags: preview, printing

[10 Mar 2010 17:04] phil smith
Description:
Print Preview crashes in the beta Workbench Modeler.  If I print, it works great.
Maybe the only thing to add is that I'm printing to Tabloid size because only then are the images large enough for me to read.

Here's the Bug Info from the clipboard -
Exception = System.ArgumentException
Message = Parameter is not valid.
FullText = System.ArgumentException: Parameter is not valid.
   at System.Drawing.Image.get_RawFormat()
   at System.Drawing.Graphics.IgnoreMetafileErrors(Image image, Int32& errorStatus)
   at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle rect)
   at System.Windows.Forms.PrintPreviewControl.OnPaint(PaintEventArgs pevent)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.PrintPreviewControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
It didn't happen at all until I made some more revisions to my model but now it's consistent.  
I can send the file if you need it.
[10 Mar 2010 17:09] MySQL Verification Team
Thank you for the bug report. Could you please provide the project file model (private if you want)?. I couldn't repeat with Sakila model for example. Thanks in advance.
[10 Mar 2010 17:39] phil smith
File I provided doesn't crash now.
But the print preview does make all objects all BLACK except for icons.
[11 Mar 2010 6:56] Valeriy Kravchuk
I had verified that "print preview does make all objects all BLACK except for icons" on Windows XP with your model.
[12 Mar 2010 20:30] Richard Mah
Same thing is happening for my models.
[26 Apr 2010 16:37] Mike Lischke
Duplicate of Bug #51513