Page 1 of 1

Minor Designer Issue

Posted: Thu Oct 01, 2009 9:56 am
by xss
Hi guys,

I came across a minor Designer issue.

When dragging columns, variables, ... from the dictionary following exception occurs:

Invalid Parameter.

Stack Trace:
bei System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat)
bei System.Drawing.Graphics.MeasureString(String text, Font font, Int32 width, StringFormat format)
bei Stimulsoft.Base.Drawing.StiTextDrawing.MeasureString(Graphics g, String text, Font font, Double width, StiTextOptions textOptions, StiTextHorAlignment ha, StiVertAlignment va, Boolean antialiasing)
bei Stimulsoft.Report.Components.StiStandardTextRenderer.MeasureString(Double maxWidth, Font font, StiText textBox)
bei Stimulsoft.Report.Components.StiText.GetActualSize()
bei Stimulsoft.Report.Design.StiDesignerDragDrop.StartDragDrop(StiDesignerControl designer, StiComponent componentForCreate, Control dragDropSender, String textForTextComponent, String textForLabel)
bei Stimulsoft.Report.Dictionary.Design.StiDictionaryControl.tvData_ItemDrag(Object sender, ItemDragEventArgs e)
bei System.Windows.Forms.TreeView.OnItemDrag(ItemDragEventArgs e)
bei System.Windows.Forms.TreeView.TvnBeginDrag(MouseButtons buttons, NMTREEVIEW* nmtv)
bei System.Windows.Forms.TreeView.WmNotify(Message& m)
bei System.Windows.Forms.TreeView.WndProc(Message& m)
bei Stimulsoft.Report.Controls.StiTreeView.WndProc(Message& msg)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Version: 2009.3.508.0

Regards

Minor Designer Issue

Posted: Fri Oct 02, 2009 12:40 am
by Andrew
Hello,

Could describe step-by-step how did you get this exception. How to reproduce the error?

Thank you.

Minor Designer Issue

Posted: Fri Oct 02, 2009 1:15 am
by Andrew
... and, in addition, what version of the product do you use?

Thank you.

Minor Designer Issue

Posted: Fri Oct 02, 2009 1:59 am
by xss
Good morning,

found it. I thought calling the Designer with Design() from report object will make an internal copy, so I disposed it afterwards. :shame:

Thank you and sorry for waisting your time.

Minor Designer Issue

Posted: Fri Oct 02, 2009 5:50 am
by Edward
Hi,

No problem :)

Please let us know if you need any help.

Thank you.