Page 1 of 2

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Sun Oct 11, 2009 8:55 am
by sphextor
error in stiviewercontrol when minimize windows version 2009.3.509.0

simple step to reproduce
1. open demo program
2. at basic reports choose [two simple lists] example
3. report preview for 5 page
4. select page 4 or 5 (yellow border at page 4)
5. minimize windows
6. error occurs


Thank you

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Value must be less or equal than Maximum property value.
at Stimulsoft.Controls.Win.DotNetBar.ScrollBar.ScrollBarAdv.set_Value(Int32 value)
at Stimulsoft.Report.Viewer.StiViewerControl.ScrollToCurPage(Boolean fullSize)
at Stimulsoft.Report.Viewer.StiViewerControl.SetZoom(Double zoom)
at Stimulsoft.Report.Viewer.StiViewerControl.SetZoomMultiplePages(Int32 pagesByWidth, Int32 pagesByHeight)
at Stimulsoft.Report.Viewer.StiViewerControl.SetZoomByDefault()
at Stimulsoft.Report.Viewer.StiViewerControl.StiPreview_Resize(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.UserControl.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Demo
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/Program%20Files/Stimulsoft%20Reports.Net%202009.2/Bin/Demo.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Stimulsoft.Report
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Report/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Report.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Stimulsoft.Controls
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Controls/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Controls.dll
----------------------------------------
Stimulsoft.Report.Win
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Report.Win/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Report.Win.dll
----------------------------------------
Stimulsoft.Base
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Base/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Base.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Stimulsoft.Controls.Win
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Controls.Win/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Controls.Win.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Stimulsoft.Report.Design
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Report.Design/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Report.Design.dll
----------------------------------------
Stimulsoft.Editor
Assembly Version: 2009.3.509.0
Win32 Version: 2009.3.509.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Stimulsoft.Editor/2009.3.509.0__ebe6666cba19647a/Stimulsoft.Editor.dll
----------------------------------------
TwoSimpleLists.2009.3.509.587ff1ac98f24b82ad4a60c691d8b32f
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/kritsadar/Local%20Settings/Application%20Data/Stimulsoft/CompiledReports/v2.0.50727/TwoSimpleLists.2009.3.509.587ff1ac98f24b82ad4a60c691d8b32f.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 2:35 am
by Edward
Hi

Sorry, I could not reproduce this error. Did you run Demo.exe from Visual Studio?

Please try to delete the following directory and try to reproduce the issue again:

C:\Documents and Settings\'Name of the User Account'\Local Settings\Application Data\Stimulsoft\

Thank you.

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 2:40 am
by sphextor
I delete thai directory
It still error

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 2:48 am
by sphextor
Demo.exe from stimulsoft install

and I open vb.net Project from vs still eror {"Specified argument was out of the range of valid values. Parameter name: Value must be less or equal than Maximum property value."}

note : you must select page 4 from sample and then minimize windows

OK let's reproduce again

from sample step above

1. you select page 1 (yellor border appear around page) then minimize windows ========= everything OK
2. you select page 2 (yellor border appear around page) then minimize windows ========= everything OK
3. you select page 3 (yellor border appear around page) then minimize windows ========= everything OK
4. you select page 4 Error Occur

Please help me I use stiviewercontrol in my project

Thank you


error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 3:00 am
by sphextor
Your SourceCode Version

public void ScrollToCurPage(bool fullSize)
{
if (pageParams != null && pageParams.Count > 0 && pageParams.Count > CurrentPrintPage && CurrentPrintPage >= 0)
{
StiPageParamView curPageView = (StiPageParamView)pageParams[CurrentPrintPage];
Rectangle pageRect = GetPageRect(curPageView);

if (!view.ClientRectangle.IntersectsWith(pageRect) || fullSize)
{
if (curPageView.Line == 0) vScrollBar.Value = 0;
else
{
vScrollBar.Value += pageRect.Top;
if (vScrollBar.Value vScrollBar.Maximum)
{
if (vScrollBar.Maximum >= vScrollBar.LargeChange)
{
vScrollBar.Value = vScrollBar.Maximum - vScrollBar.LargeChange;
}
else vScrollBar.Value = 0;
}
}
}
}
}

error at the bold line

thank you

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 3:21 am
by Edward
Hi

Steps for reproducing now are absolutely clear, thank you.

But I still can not reproduce the issue.

Please let me know version of the Windows you are working in.

Thank you.

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 3:31 am
by sphextor
My Dev System

VS 2008 SP1 + All Fix
Windows XP Professional XP3 with All Update

Thank you

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 7:33 am
by sphextor

OK I reproduce it again

only occur in multiple pages view and test view for whole 5 page and select at page 5 then minimize windows

error occur

Thank you

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Mon Oct 12, 2009 9:57 am
by Edward
Hi

Now I have reproduced it too, thank you for your comments. We will let you know when the patch is available.

Thank you.

error in stiviewercontrol when minimize windows version 2009.3.509.0

Posted: Tue Oct 13, 2009 8:32 am
by Ivan
Hello,

Problem is solved.
Patch will be available in next prerelease build from 19-Oct-2009.

Thank you.