This commit is contained in:
2012-04-03 16:18:04 +00:00
parent a02a253b7f
commit 143f927cc6
4 changed files with 19 additions and 2 deletions

View File

@@ -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);