This commit is contained in:
@@ -414,6 +414,12 @@ namespace VEPROMS
|
||||
// if changing format, check for valid type (see comment above)
|
||||
if (!myInit && pf != opf)
|
||||
{
|
||||
if (newDocStyles.Count == 0)
|
||||
{
|
||||
string msg1 = string.Format("A Page Style for the type of section, {0}, is not available in the new format. You cannot do this operation.", _isStepSection? "Step Section": "Word Document");
|
||||
MessageBox.Show(msg1, "Cannot change to this format");
|
||||
return;
|
||||
}
|
||||
if (oldSelIndx > newDocStyles.Count)
|
||||
{
|
||||
string msg = string.Format("The section type that is set is not available in the new format, it was reset to {0}. Verify that it is appropriate.", newDocStyles[0].Name);
|
||||
|
Reference in New Issue
Block a user