HPSM documents generator.

advertisement
HPSM documents generator.
Here is the POC for Automated Documentation in SM7 based on a custom HTML document
integrated in MS Word through a Word compliant header/formatting.
Step 1:
Share a drive on SM server:
\\MyServer\FMRDdocs\
Step 2:
Load the JS (here for the IM):
//*************************************************************************
**********
//@FMRD Generate an automated documentation for IM based on HTML templates
//
function IM_2_DOC(incident) {
var HTML="";
HTML+="<html xmlns:v=\"urn:schemas-microsoft-com:vml\""
HTML+="xmlns:o=\"urn:schemas-microsoft-com:office:office\""
HTML+="xmlns:w=\"urn:schemas-microsoft-com:office:word\""
HTML+="xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\""
HTML+="xmlns=\"http://www.w3.org/TR/REC-html40\">"
HTML+="<head>"
HTML+="<meta http-equiv=Content-Type content=\"text/html; charset=usascii\">"
HTML+="<meta name=ProgId content=Word.Document>"
HTML+="<meta name=Generator content=\"Microsoft Word 14\">"
HTML+="<meta name=Originator content=\"Microsoft Word 14\">"
HTML+="<link rel=File-List>"
HTML+="<title>Automated Documentation</title>"
HTML+="<!--[if gte mso 9]><xml>"
HTML+=" <o:DocumentProperties>"
HTML+=" <o:Author></o:Author>"
HTML+=" <o:LastAuthor></o:LastAuthor>"
HTML+=" <o:Revision></o:Revision>"
HTML+=" <o:Created></o:Created>"
HTML+=" <o:LastSaved></o:LastSaved>"
HTML+=" <o:Pages></o:Pages>"
HTML+=" <o:Words></o:Words>"
HTML+=" <o:Characters></o:Characters>"
HTML+=" <o:Company></o:Company>"
HTML+=" <o:Lines></o:Lines>"
HTML+=" <o:Paragraphs></o:Paragraphs>"
HTML+=" <o:CharactersWithSpaces></o:CharactersWithSpaces>"
HTML+=" <o:Version>14.00</o:Version>"
HTML+=" </o:DocumentProperties>"
HTML+=" <o:OfficeDocumentSettings>"
HTML+=" <o:AllowPNG/>"
HTML+=" </o:OfficeDocumentSettings>"
HTML+="</xml><![endif]-->"
HTML+="<link rel=themeData"
HTML+=">"
HTML+="<link rel=colorSchemeMapping"
HTML+=">"
HTML+="<!--[if gte mso 9]><xml>"
HTML+=" <w:WordDocument>"
HTML+=" <w:TrackMoves>false</w:TrackMoves>"
HTML+=" <w:TrackFormatting/>"
HTML+=" <w:ValidateAgainstSchemas/>"
HTML+=" <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>"
HTML+=" <w:IgnoreMixedContent>false</w:IgnoreMixedContent>"
HTML+=" <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>"
HTML+=" <w:DoNotPromoteQF/>"
HTML+=" <w:LidThemeOther>EN-GB</w:LidThemeOther>"
HTML+=" <w:LidThemeAsian>X-NONE</w:LidThemeAsian>"
HTML+=" <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>"
HTML+=" <w:Compatibility>"
HTML+="
<w:BreakWrappedTables/>"
HTML+="
<w:SplitPgBreakAndParaMark/>"
HTML+=" </w:Compatibility>"
HTML+=" <m:mathPr>"
HTML+="
<m:mathFont m:val=\"Cambria Math\"/>"
HTML+="
<m:brkBin m:val=\"before\"/>"
HTML+="
<m:brkBinSub m:val=\"--\"/>"
HTML+="
<m:smallFrac m:val=\"off\"/>"
HTML+="
<m:dispDef/>"
HTML+="
<m:lMargin m:val=\"0\"/>"
HTML+="
<m:rMargin m:val=\"0\"/>"
HTML+="
<m:defJc m:val=\"centerGroup\"/>"
HTML+="
<m:wrapIndent m:val=\"1440\"/>"
HTML+="
<m:intLim m:val=\"subSup\"/>"
HTML+="
<m:naryLim m:val=\"undOvr\"/>"
HTML+=" </m:mathPr></w:WordDocument>"
HTML+="</xml><![endif]--><!--[if gte mso 9]><xml>"
HTML+=" <w:LatentStyles DefLockedState=\"false\"
DefUnhideWhenUsed=\"true\""
HTML+=" DefSemiHidden=\"true\" DefQFormat=\"false\" DefPriority=\"99\""
HTML+=" LatentStyleCount=\"267\">"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"0\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Normal\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"heading 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"heading 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 7\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 8\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"9\" QFormat=\"true\"
Name=\"heading 9\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 7\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 8\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" Name=\"toc 9\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"35\" QFormat=\"true\"
Name=\"caption\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"10\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Title\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"1\" Name=\"Default
Paragraph Font\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"11\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Subtitle\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"22\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Strong\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"20\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Emphasis\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"59\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Table Grid\"/>"
HTML+=" <w:LsdException Locked=\"false\" UnhideWhenUsed=\"false\"
Name=\"Placeholder Text\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"1\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"No Spacing\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" UnhideWhenUsed=\"false\"
Name=\"Revision\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"34\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"List
Paragraph\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"29\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Quote\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"30\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Intense
Quote\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3 Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid Accent 1\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3 Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid Accent 2\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3 Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid Accent 3\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3 Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid Accent 4\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3 Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid Accent 5\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"60\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Shading Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"61\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light List Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"62\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Light Grid Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"63\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 1 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"64\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Shading 2 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"65\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 1 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"66\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium List 2 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"67\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 1 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"68\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 2 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"69\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Medium Grid 3 Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"70\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Dark List Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"71\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Shading Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"72\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful List Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"73\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" Name=\"Colorful Grid Accent 6\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"19\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Subtle
Emphasis\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"21\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Intense
Emphasis\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"31\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Subtle
Reference\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"32\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Intense
Reference\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"33\"
SemiHidden=\"false\""
HTML+="
UnhideWhenUsed=\"false\" QFormat=\"true\" Name=\"Book Title\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"37\"
Name=\"Bibliography\"/>"
HTML+=" <w:LsdException Locked=\"false\" Priority=\"39\" QFormat=\"true\"
Name=\"TOC Heading\"/>"
HTML+=" </w:LatentStyles>"
HTML+="</xml><![endif]-->"
HTML+="<style>"
HTML+="<!--"
HTML+=" /* Font Definitions */"
HTML+=" @font-face"
HTML+="
{font-family:Helvetica;"
HTML+="
panose-1:2 11 6 4 2 2 2 2 2 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:swiss;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:Courier;"
HTML+="
panose-1:2 7 4 9 2 2 5 2 4 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:modern;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"Tms Rmn\";"
HTML+="
panose-1:2 2 6 3 4 5 5 2 3 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:Helv;"
HTML+="
panose-1:2 11 6 4 2 2 2 3 2 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:swiss;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"New York\";"
HTML+="
panose-1:2 4 5 3 6 5 6 2 3 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:System;"
HTML+="
panose-1:0 0 0 0 0 0 0 0 0 0;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:swiss;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:Wingdings;"
HTML+="
panose-1:5 0 0 0 0 0 0 0 0 0;"
HTML+="
mso-font-charset:2;"
HTML+="
mso-generic-font-family:auto;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 268435456 0 0 -2147483648 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"MS Mincho\";"
HTML+="
panose-1:2 2 6 9 4 2 5 8 3 4;"
HTML+="
mso-font-alt:\"\FF2D\FF33 \660E\671D\";"
HTML+="
mso-font-charset:128;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 134676480 16 0 131072 0;}"
HTML+="@font-face"
HTML+="
{font-family:Batang;"
HTML+="
panose-1:2 3 6 0 0 1 1 1 1 1;"
HTML+="
mso-font-alt:\BC14\D0D5;"
HTML+="
mso-font-charset:129;"
HTML+="
mso-generic-font-family:auto;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 151388160 16 0 524288 0;}"
HTML+="@font-face"
HTML+="
{font-family:SimSun;"
HTML+="
panose-1:2 1 6 0 3 1 1 1 1 1;"
HTML+="
mso-font-alt:\5B8B\4F53;"
HTML+="
mso-font-charset:134;"
HTML+="
mso-generic-font-family:auto;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:1 135135232 16 0 262144 0;}"
HTML+="@font-face"
HTML+="
{font-family:PMingLiU;"
HTML+="
panose-1:2 2 5 0 0 0 0 0 0 0;"
HTML+="
mso-font-alt:\65B0\7D30\660E\9AD4;"
HTML+="
mso-font-charset:136;"
HTML+="
mso-generic-font-family:auto;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:1 134742016 16 0 1048576 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"MS Gothic\";"
HTML+="
panose-1:2 11 6 9 7 2 5 8 2 4;"
HTML+="
mso-font-alt:\"\FF2D\FF33 \30B4\30B7\30C3\30AF\";"
HTML+="
mso-font-charset:128;"
HTML+="
mso-generic-font-family:modern;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 134676480 16 0 131072 0;}"
HTML+="@font-face"
HTML+="
{font-family:Dotum;"
HTML+="
panose-1:2 11 6 0 0 1 1 1 1 1;"
HTML+="
mso-font-alt:\B3CB\C6C0;"
HTML+="
mso-font-charset:129;"
HTML+="
mso-generic-font-family:modern;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 151388160 16 0 524288 0;}"
HTML+="@font-face"
HTML+="
{font-family:SimHei;"
HTML+="
panose-1:2 1 6 9 6 1 1 1 1 1;"
HTML+="
mso-font-alt:\9ED1\4F53;"
HTML+="
mso-font-charset:134;"
HTML+="
mso-generic-font-family:modern;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 135135232 16
HTML+="@font-face"
HTML+="
{font-family:MingLiU;"
HTML+="
panose-1:2 2 5 9 0 0 0 0 0 0;"
HTML+="
mso-font-alt:\7D30\660E\9AD4;"
HTML+="
mso-font-charset:136;"
HTML+="
mso-generic-font-family:modern;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 134742016 16
HTML+="@font-face"
HTML+="
{font-family:Mincho;"
HTML+="
panose-1:2 2 6 9 4 3 5 8 3 5;"
HTML+="
mso-font-alt:\660E\671D;"
HTML+="
mso-font-charset:128;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 134676480 16
HTML+="@font-face"
HTML+="
{font-family:Gulim;"
HTML+="
panose-1:2 11 6 0 0 1 1 1 1 1;"
HTML+="
mso-font-alt:\AD74\B9BC;"
HTML+="
mso-font-charset:129;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:fixed;"
HTML+="
mso-font-signature:1 151388160 16
HTML+="@font-face"
HTML+="
{font-family:Century;"
HTML+="
panose-1:2 4 6 4 5 5 5 2 3 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"Angsana New\";"
HTML+="
panose-1:2 2 6 3 5 4 5 2 3 4;"
HTML+="
mso-font-charset:222;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:16777217 0 0 0
HTML+="@font-face"
HTML+="
{font-family:\"Cordia New\";"
HTML+="
panose-1:2 11 3 4 2 2 2 2 2 4;"
HTML+="
mso-font-charset:222;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:16777217 0 0 0
HTML+="@font-face"
0 262144 0;}"
0 1048576 0;}"
0 131072 0;}"
0 524288 0;}"
65536 0;}"
65536 0;}"
HTML+="
{font-family:Mangal;"
HTML+="
panose-1:2 4 5 3 5 2 3 3 2 2;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:8192 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Latha;"
HTML+="
panose-1:2 11 6 4 2 2 2 2 2 4;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:262144 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Sylfaen;"
HTML+="
panose-1:1 10 5 2 5 3 6 3 3 3;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:12583555 0 0 0 13 0;}"
HTML+="@font-face"
HTML+="
{font-family:Vrinda;"
HTML+="
panose-1:2 11 5 2 4 2 4 2 2 3;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Raavi;"
HTML+="
panose-1:2 11 5 2 4 2 4 2 2 3;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Shruti;"
HTML+="
panose-1:2 11 5 2 4 2 4 2 2 3;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Sendnya;"
HTML+="
panose-1:0 0 4 0 0 0 0 0 0 0;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Gautami;"
HTML+="
panose-1:2 11 5 2 4 2 4 2 2 3;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:Tunga;"
HTML+="
panose-1:2 11 5 2 4 2 4 2 2 3;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"Estrangelo Edessa\";"
HTML+="
panose-1:3 8 6 0 0 0 0 0 0 0;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"Cambria Math\";"
HTML+="
panose-1:2 4 5 3 5 4 6 3 2 4;"
HTML+="
mso-font-charset:1;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:0 0 0 0 0 0;}"
HTML+="@font-face"
HTML+="
{font-family:\"Arial Unicode MS\";"
HTML+="
panose-1:2 11 6 4 2 2 2 2 2 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+="@font-face"
HTML+="
{font-family:Cambria;"
HTML+="
panose-1:2 4 5 3 5 4 6 3 2 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:roman;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:-536870145 1073743103 0 0 415 0;}"
HTML+="@font-face"
HTML+="
{font-family:Calibri;"
HTML+="
panose-1:2 15 5 2 2 2 4 3 2 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:swiss;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:-536870145 1073786111 1 0 415 0;}"
HTML+="@font-face"
HTML+="
{font-family:Tahoma;"
HTML+="
panose-1:2 11 6 4 3 5 4 4 2 4;"
HTML+="
mso-font-charset:0;"
HTML+="
mso-generic-font-family:swiss;"
HTML+="
mso-font-format:other;"
HTML+="
mso-font-pitch:variable;"
HTML+="
mso-font-signature:3 0 0 0 1 0;}"
HTML+=" /* Style Definitions */"
HTML+=" p.MsoNormal, li.MsoNormal, div.MsoNormal"
HTML+="
{mso-style-unhide:no;"
HTML+="
mso-style-qformat:yes;"
HTML+="
mso-style-parent:\"\";"
HTML+="
margin:0cm;"
HTML+="
margin-bottom:.0001pt;"
HTML+="
mso-pagination:widow-orphan;"
HTML+="
font-size:12.0pt;"
HTML+="
font-family:\"Times New Roman\",\"serif\";"
HTML+="
mso-fareast-font-family:\"Times New Roman\";"
HTML+="
mso-fareast-theme-font:minor-fareast;}"
HTML+="h3"
HTML+="
{mso-style-priority:9;"
HTML+="
mso-style-unhide:no;"
HTML+="
mso-style-qformat:yes;"
HTML+="
mso-style-link:\"Heading 3 Char\";"
HTML+="
mso-margin-top-alt:auto;"
HTML+="
margin-right:0cm;"
HTML+="
mso-margin-bottom-alt:auto;"
HTML+="
margin-left:0cm;"
HTML+="
mso-pagination:widow-orphan;"
HTML+="
mso-outline-level:3;"
HTML+="
font-size:13.5pt;"
HTML+="
font-family:\"Times New Roman\",\"serif\";"
HTML+="
mso-fareast-font-family:\"Times New Roman\";"
HTML+="
mso-fareast-theme-font:minor-fareast;"
HTML+="
font-weight:bold;}"
HTML+="p"
HTML+="
{mso-style-noshow:yes;"
HTML+="
mso-style-priority:99;"
HTML+="
font-size:12.0pt;"
HTML+="
font-family:\"Times New Roman\",\"serif\";"
HTML+="
mso-fareast-font-family:\"Times New Roman\";"
HTML+="
mso-fareast-theme-font:minor-fareast;}"
HTML+="span.Heading3Char"
HTML+="
{mso-style-name:\"Heading 3 Char\";"
HTML+="
mso-style-noshow:yes;"
HTML+="
mso-style-priority:9;"
HTML+="
mso-style-unhide:no;"
HTML+="
mso-style-locked:yes;"
HTML+="
mso-style-link:\"Heading 3\";"
HTML+="
mso-ansi-font-size:12.0pt;"
HTML+="
mso-bidi-font-size:12.0pt;"
HTML+="
font-family:\"Cambria\",\"serif\";"
HTML+="
mso-ascii-font-family:Cambria;"
HTML+="
mso-ascii-theme-font:major-latin;"
HTML+="
mso-fareast-font-family:\"Times New Roman\";"
HTML+="
mso-fareast-theme-font:major-fareast;"
HTML+="
mso-hansi-font-family:Cambria;"
HTML+="
mso-hansi-theme-font:major-latin;"
HTML+="
mso-bidi-font-family:\"Times New Roman\";"
HTML+="
mso-bidi-theme-font:major-bidi;"
HTML+="
color:#4F81BD;"
HTML+="
mso-themecolor:accent1;"
HTML+="
font-weight:bold;}"
HTML+="span.msoIns"
HTML+="
{mso-style-type:export-only;"
HTML+="
mso-style-name:\"\";"
HTML+="
text-decoration:underline;"
HTML+="
text-underline:single;"
HTML+="
color:teal;}"
HTML+="span.msoDel"
HTML+="
{mso-style-type:export-only;"
HTML+="
mso-style-name:\"\";"
HTML+="
text-decoration:line-through;"
HTML+="
color:red;}"
HTML+=".MsoChpDefault"
HTML+="
{mso-style-type:export-only;"
HTML+="
mso-default-props:yes;"
HTML+="
font-size:10.0pt;"
HTML+="
mso-ansi-font-size:10.0pt;"
HTML+="
mso-bidi-font-size:10.0pt;}"
HTML+="@page WordSection1"
HTML+="
{size:595.3pt 841.9pt;"
HTML+="
margin:72.0pt 72.0pt 72.0pt 72.0pt;"
HTML+="
mso-header-margin:35.4pt;"
HTML+="
mso-footer-margin:35.4pt;"
HTML+="
mso-paper-source:0;}"
HTML+="div.WordSection1"
HTML+="
{page:WordSection1;}"
HTML+="-->"
HTML+="</style>"
HTML+="<!--[if gte mso 10]>"
HTML+="<style>"
HTML+=" /* Style Definitions */"
HTML+=" table.MsoNormalTable"
HTML+="
{mso-style-name:\"Table Normal\";"
HTML+="
mso-tstyle-rowband-size:0;"
HTML+="
mso-tstyle-colband-size:0;"
HTML+="
mso-style-noshow:yes;"
HTML+="
mso-style-priority:99;"
HTML+="
mso-style-parent:\"\";"
HTML+="
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;"
HTML+="
mso-para-margin:0cm;"
HTML+="
mso-para-margin-bottom:.0001pt;"
HTML+="
mso-pagination:widow-orphan;"
HTML+="
font-size:10.0pt;"
HTML+="
font-family:\"Times New Roman\",\"serif\";}"
HTML+="</style>"
HTML+="<![endif]--><!--[if gte mso 9]><xml>"
HTML+=" <o:shapedefaults v:ext=\"edit\" spidmax=\"1026\"/>"
HTML+="</xml><![endif]--><!--[if gte mso 9]><xml>"
HTML+=" <o:shapelayout v:ext=\"edit\">"
HTML+=" <o:idmap v:ext=\"edit\" data=\"1\"/>"
HTML+=" </o:shapelayout></xml><![endif]-->"
HTML+="</head>"
HTML+="<body lang=EN-GB style=\'tab-interval:36.0pt\'>"
HTML+="<div class=WordSection1>"
var innerHTML = lib.htmlemailtemplates.getMailBody("IM
Open",incident,"","","en");
HTML+=innerHTML;
HTML+="</div>"
HTML+="</body>"
HTML+="</html>"
//var filePath = "C:\\Code_report_dbdict_" + dbname + "_" +
system.functions.year(system.functions.tod()) + "_" +
system.functions.month(system.functions.tod()) + "_" +
system.functions.day(system.functions.tod()) + ".doc";
var docname="AutomatedDocument_" + incident.number + ".doc"
var filePath = "C:\\FMRDdocs\\"+docname;
print(filePath)
var isBinary = null;
var fileObject = HTML;
var ret=writeToFile(filePath, isBinary, fileObject)
return docname
}
function GetNumber(table)
{
var rc
= new SCDatum();
var number = new SCDatum();
system.functions.rtecall("getnumber", rc, number, table, "");
return number;
}
function writeToFile(path, binary, object) {
print("Writing " + path + " to file...");
var output = writeFile(path, binary, object);
print("The number of bytes written to file was: " + output);
return output
}
TIPS:
EDIT:
No more customized HTML, it uses the HTML emails getbody function, so you can create a “doc
template” and call it in the function. (logos.images in base64 encoded images doesn’t work, only if
the file is read as HTML with a browser)
HTML+="<div class=WordSection1>"
var innerHTML = lib.htmlemailtemplates.getMailBody("IM
Open",incident,"","","en");
HTML+=innerHTML;
HTML+="</div>"
Step 3:
Create a custom displayoption on apm.edit.problem:
In the RAD section:
Note in condition the best would be [sysinfo.get("ClientOSName")#"Win"] didn’t tried Web yet.
Step 4:
Execute the DO, it will write the doc file on the server based on the html template you’ve set in the
JS function and open it on the client side.
Note: in order to avoid disk space issues, on the server schedule a batch file to clean the containing
folder:
del "C:\FMRDdocs\*.DOC"
Download