Using Limit of 10 MSWord Sections - More than 10 was causing problems for DSO Framer. B2010-005 & B2010-006
This commit is contained in:
parent
78753f3dd0
commit
01c4a1e468
@ -24,6 +24,7 @@ namespace Volian.Controls.Library
|
|||||||
private int _MyCount;
|
private int _MyCount;
|
||||||
private DisplayTabItem _MyDisplayTabItem;
|
private DisplayTabItem _MyDisplayTabItem;
|
||||||
private DSOFile _DSOFile;
|
private DSOFile _DSOFile;
|
||||||
|
public static int MSWordLimit = 10;
|
||||||
#endregion
|
#endregion
|
||||||
#region Public Properties
|
#region Public Properties
|
||||||
private String _SearchString;
|
private String _SearchString;
|
||||||
@ -116,7 +117,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private void SetupDSO()
|
private void SetupDSO()
|
||||||
{
|
{
|
||||||
_Count++; // Increment the count of open Word documents (Limit in DisplayTabControl)
|
_Count++; // Increment the count of open Word documents (Limit = MSWordLimit)
|
||||||
_MyCount = _Count;
|
_MyCount = _Count;
|
||||||
this._MyTransparentPanel = new TransparentPanel();
|
this._MyTransparentPanel = new TransparentPanel();
|
||||||
this._MyDSOFramer = new AxDSOFramer.AxFramerControl();
|
this._MyDSOFramer = new AxDSOFramer.AxFramerControl();
|
||||||
@ -486,7 +487,7 @@ namespace Volian.Controls.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
this._MyDSOFramer.Activate();
|
this._MyDSOFramer.Activate();
|
||||||
if (_MyCount < 20)
|
if (_MyCount <= MSWordLimit)
|
||||||
this._MyDSOFramer.FrameHookPolicy = DSOFramer.dsoFrameHookPolicy.dsoResetNow;
|
this._MyDSOFramer.FrameHookPolicy = DSOFramer.dsoFrameHookPolicy.dsoResetNow;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -635,7 +635,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (DSOTabPanel.Count > 18) // Limit the number of open document pages to 18
|
if (DSOTabPanel.Count >= DSOTabPanel.MSWordLimit) // Limit the number of open document pages to 18
|
||||||
{
|
{
|
||||||
MessageBox.Show("Too many Word Documents Open. Please close one of the Documents before attempting to open another");
|
MessageBox.Show("Too many Word Documents Open. Please close one of the Documents before attempting to open another");
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user