Error at Print dialog

Discussions about Diving Log 6.0 - questions and hints
Post Reply
Gravis2005
Posts: 11
Joined: Tue Nov 08, 2011 20:07

Error at Print dialog

Post by Gravis2005 » Tue May 22, 2012 19:18

Hi everybody!! i updated to version 5.0.7 and now i cant open the print dialog... Any ideas? Regards...


This is the log:


Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.Exception: Can't fit data into this size
en ThoughtWorks.QRCode.Codec.QRCodeEncoder.divideDataBy8Bits(Int32[] data, SByte[] bits, Int32 maxDataCodewords)
en ThoughtWorks.QRCode.Codec.QRCodeEncoder.calQrcode(Byte[] qrcodeData)
en ThoughtWorks.QRCode.Codec.QRCodeEncoder.Encode(String content, Encoding encoding)
en ThoughtWorks.QRCode.Codec.QRCodeEncoder.Encode(String content)
en Divinglog.Tools.Graphic.GetQRCode(String Text)
en Divinglog.Tools.Graphic.GetQRContact(String Name, String Address, String Phone, String Email)
en Divinglog.Printing.ListLabelLogbook.LoadData()
en Divinglog.frmPrint.ListBox1_SelectedIndexChanged(Object sender, EventArgs e)
en System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
en Divinglog.Controls.OfficeListBox.OnSelectedIndexChanged(EventArgs e)
en System.Windows.Forms.ListBox.set_SelectedIndex(Int32 value)
en Divinglog.frmPrint.frmPrint_Load(Object sender, EventArgs e)
en System.Windows.Forms.Form.OnLoad(EventArgs e)
en System.Windows.Forms.Form.OnCreateControl()
en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
en System.Windows.Forms.Control.CreateControl()
en System.Windows.Forms.Control.WmShowWindow(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.ContainerControl.WndProc(Message& m)
en System.Windows.Forms.Form.WmShowWindow(Message& m)
en System.Windows.Forms.Form.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

...

divinglog
Site Admin
Posts: 5055
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Error at Print dialog

Post by divinglog » Wed May 23, 2012 14:52

Hi

Thanks for reporting this issue! It is caused by the new QR Code support. I'll upload a fix later today. Can you send me your logbook file to info (at) divinglog.de. I would be interested which data is causing the crash. It looks like some data is too long for the QR Code.

Kind regards,
Sven

Gravis2005
Posts: 11
Joined: Tue Nov 08, 2011 20:07

Re: Error at Print dialog

Post by Gravis2005 » Wed May 23, 2012 15:41

Thanks for your answer !!
already send you the file.

regards.

divinglog
Site Admin
Posts: 5055
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Error at Print dialog

Post by divinglog » Wed May 23, 2012 18:54

I've implemented a fix so that the application should not crash anymore you can print again. Please download this zip file and extract it into the Diving Log program folder.

Thank you for the file!

Kind regards,
Sven

Gravis2005
Posts: 11
Joined: Tue Nov 08, 2011 20:07

Re: Error at Print dialog

Post by Gravis2005 » Thu May 24, 2012 00:28

Problem fixed!!
you are a genius :wink:

thank you very much !!

divinglog
Site Admin
Posts: 5055
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Error at Print dialog

Post by divinglog » Thu May 24, 2012 17:54

Thank you, I'm glad it is working again! The problem was the relative long address string, which doesn't fit into the QR Code.

GiC
Posts: 1
Joined: Wed Apr 20, 2016 10:15

Re: Error at Print dialog

Post by GiC » Wed Apr 20, 2016 10:18

Hi guys
I have this problem! Can I have the fix?
Thanks a lot!!
divinglog wrote:I've implemented a fix so that the application should not crash anymore you can print again. Please download this zip file and extract it into the Diving Log program folder.

Thank you for the file!

Kind regards,
Sven

divinglog
Site Admin
Posts: 5055
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Error at Print dialog

Post by divinglog » Wed Apr 20, 2016 13:34

Hi

This thread is from 2012, so the fix is already implemented. Please start a new thread and post your error message so I can look into this issue.

Kind regards,
Sven

Post Reply