Friday, March 30, 2012

ReportViewer Docking

Using the ReportViewer WinForms Control, an exception is thrown when I try to
dock the control in a splitter control.
The exception text is "SplitterDistance must be between Panel1MinSize and
Width - Panel2MinSize.". It is raised
--> From System.Windows.Forms.SplitContainer set_SplitterDistance
--> Microsoft.Reporting.WinForms.ReportViewer SetPreferedPromptAreaHeight
--> Microsoft.Reporting.WinForms.RSParams PromptPanel_Layout
...
DoLayout
...
ControlCollection.Add(reportViewer)
If the viewer is not docked and not anchored, no exception occurs.
Thanks for your help!
--
iucon GmbH
Software Developement
http://www.iucon.deHi GmbH,
Welcome to use MSDN Managed Newsgroup!
From your descriptions, I understood you will encounter the error message
"SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize".
If I have misunderstood your concern, please feel free to point it out.
You are developing with SQL Server 2000 Reporting Services or SQL Server
2005 Reporting Services? I have created a sample VB.NET application with
SQL Server 2000 Reporting Services, added a splitter control and let the
ReportViewer docked to splitter. The sample works smoothly on my side.
Would you please generate a sample application solution for us to reproduce
it on my side? If you have any questions or concerns, don't hesitate to let
me know. We are always here to be of assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.

No comments:

Post a Comment