Subversion Repositories DevTools

Rev

Rev 2108 | Rev 2116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2108 Rev 2110
Line 1327... Line 1327...
1327
                  sb.Append("\n");
1327
                  sb.Append("\n");
1328
                  sb.Append(theAttr.Type);
1328
                  sb.Append(theAttr.Type);
1329
                  sb.Append(" ");
1329
                  sb.Append(" ");
1330
                  sb.Append(theAttr.Name);
1330
                  sb.Append(theAttr.Name);
1331
                  Word.Range wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1);
1331
                  Word.Range wr = TextualContent.appendAndSelectText(sb.ToString(), EA_Constants.styleName_Body1);
-
 
1332
                  if (wr.Characters.Last.Text.Equals("\r"))
-
 
1333
                     wr.End = wr.End - 1;   // Dont boldise the \r paragraph marker
1332
                  wr.Font.Bold = 1;
1334
                  wr.Font.Bold = 1;
1333
                  
1335
                  
1334
                  wr = TextualContent.appendDescription(TextualContent.trimTrailingReturns(theAttr.Notes));
1336
                  wr = TextualContent.appendDescription(TextualContent.trimTrailingReturns(theAttr.Notes));
1335
                  wr.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)3.5);
1337
                  wr.ParagraphFormat.LeftIndent = WordApp.CentimetersToPoints((float)3.5);
1336
 
1338
 
Line 2097... Line 2099...
2097
            }
2099
            }
2098
 
2100
 
2099
         }
2101
         }
2100
         catch (Exception createTheWordDoc_exception)
2102
         catch (Exception createTheWordDoc_exception)
2101
         {
2103
         {
2102
            Main.EA_Repository.WriteOutput(Main.GUI_OUTPUT_TAB_NAME, "Document Generation Failed : " + createTheWordDoc_exception.Message, -1);
-
 
2103
            MessageBox.Show("Document Generation Failed\n\n" + createTheWordDoc_exception.Message);
2104
            Main.ShowException(createTheWordDoc_exception, "Document Generation Failed");
2104
         }
2105
         }
2105
 
2106
 
2106
         // restore security settings
2107
         // restore security settings
2107
         WordApp.AutomationSecurity = securityBefore;
2108
         WordApp.AutomationSecurity = securityBefore;
2108
 
2109