http://www.microsoft.com/downloads/details.aspx?FamilyId=AD0B72FB-4A1D-4C52-BDB5-7DD7E816D046&displaylang=en
et quelques liens donnés sur le site openxmldeveloper.org
http://openxmldeveloper.org/archive/2008/03/13/OpenXMLSDK.aspx
| Janvier 2010 | ||||||||||
| L | M | M | J | V | S | D | ||||
| 1 | 2 | 3 | ||||||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 | ||||
| 11 | 12 | 13 | 14 | 15 | 16 | 17 | ||||
| 18 | 19 | 20 | 21 | 22 | 23 | 24 | ||||
| 25 | 26 | 27 | 28 | 29 | 30 | 31 | ||||
|
||||||||||
|
- w:sdt
o w:sdtPr
o w:sdtContent
|
|
<w:sdt>
<w:sdtPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:id w:val="4361111" />
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22675703" />
</w:placeholder>
<w:showingPlcHdr />
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
<w:pPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="000472A5">
<w:rPr>
<w:rStyle w:val="PlaceholderText" />
<w:lang w:val="en-US" />
</w:rPr>
<w:t>Click here to enter text.</w:t>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
|
|
<w:sdt>
<w:sdtPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:id w:val="4361114" />
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22675703" />
</w:placeholder>
<w:showingPlcHdr />
<w:text />
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
<w:pPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="000472A5">
<w:rPr>
<w:rStyle w:val="PlaceholderText" />
<w:lang w:val="en-US" />
</w:rPr>
<w:t>Click here to enter text.</w:t>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
|
|
<w:sdt>
<w:sdtPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:id w:val="4361103" />
<w:picture />
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
<w:pPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:r>
<w:rPr>
<w:noProof />
<w:lang w:eastAsia="fr-FR" />
</w:rPr>
<w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="1905000" cy="1271221" />
<wp:effectExtent l="19050" t="0" r="0" b="0" />
<wp:docPr id="1" name="Picture
1" />
<wp:cNvGraphicFramePr>
<a:graphicFrameLocks noChangeAspect="1" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" />
</wp:cNvGraphicFramePr>
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="0"name="Picture 1" />
<pic:cNvPicPr>
<a:picLocks noChangeAspect="1" noChangeArrowheads="1" />
</pic:cNvPicPr>
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId4" />
<a:stretch>
<a:fillRect />
</a:stretch>
</pic:blipFill>
<pic:spPr bwMode="auto">
<a:xfrm>
<a:off x="0" y="0" />
<a:ext cx="1905000" cy="1271221" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
<a:noFill />
<a:ln w="9525">
<a:noFill />
<a:miter lim="800000" />
<a:headEnd />
<a:tailEnd />
</a:ln>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
|
|
<w:sdt>
<w:sdtPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:id w:val="4361105" />
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22675704" />
</w:placeholder>
<w:showingPlcHdr />
<w:comboBox>
<w:listItem w:value="Choose an item." />
</w:comboBox>
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
<w:pPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="005B50A6">
<w:rPr>
<w:rStyle w:val="PlaceholderText" />
</w:rPr>
<w:t>Choose an item.</w:t>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
|
|
<w:sdt>
<w:sdtPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:id w:val="4361108" />
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22675704" />
</w:placeholder>
<w:showingPlcHdr />
<w:dropDownList>
<w:listItem w:value="Choose an item." />
</w:dropDownList>
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="000472A5" w:rsidRDefault="000472A5">
<w:pPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="005B50A6">
<w:rPr>
<w:rStyle w:val="PlaceholderText" />
</w:rPr>
<w:t>Choose an item.</w:t>
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
|
|
<w:sdt>
<w:sdtPr>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:id w:val="4361109" />
<w:placeholder>
<w:docPart w:val="DefaultPlaceholder_22675705" />
</w:placeholder>
<w:showingPlcHdr />
<w:date>
<w:dateFormat w:val="dd/MM/yyyy" />
<w:lid w:val="fr-FR" />
<w:storeMappedDataAs w:val="dateTime" />
<w:calendar w:val="gregorian" />
</w:date>
</w:sdtPr>
<w:sdtContent>
<w:p w:rsidR="000472A5" w:rsidRDefault="000472A5" w:rsidP="000472A5">
<w:pPr>
<w:tabs>
<w:tab w:val="left" w:pos="3060" />
</w:tabs>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:r w:rsidRPr="000472A5">
<w:rPr>
<w:rStyle w:val="PlaceholderText" />
<w:lang w:val="en-US" />
</w:rPr>
<w:t>Click here to enter a date.</w:t>
</w:r>
<w:r>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:tab />
</w:r>
</w:p>
</w:sdtContent>
</w:sdt>
|
|
<Default Extension="jpg" ContentType="image/jpeg"/>
|
|
<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Id="rId6"
Target="/word/media/miaouinterne.jpg"/>
|
|
<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Target="miaouexterne.jpg"
Id="rId7"
TargetMode="External" />
|
|
<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="http://shaan.typepad.com/photos/1/chat.jpg"
Id="rId8"
TargetMode="External" />
|
|
<w:p>
<w:r>
<w:pict>
<v:shape>
<v:imagedata r:id="rId6" />
</v:shape>
</w:pict>
</w:r>
</w:p>
|
Open XML Developer Workshop vidéos
je me suis rendu compte que je n'avais pas mis les liens vers les Workshop vidéos
http://msdn2.microsoft.com/en-us/office/bb738430.aspx
correspondant à http://openxmldeveloper.org/articles/DeveloperWorkshopContent.aspx
que j'avais mis en lien dans un post précédent
ces vidéos (avec les présentations et sources sur le site openxmldevelopper.org) représentent un excellent support de formation pour Open XML
|
|
|
// ouvrir un package
WordprocessingDocument wordprocessingDocument =
WordprocessingDocument.Open(@"C:/Documents and Settings/romagny/Mes documents/test.docx",true);// document word
SpreadsheetDocument spreadsheetDocument =
SpreadsheetDocument.Open(@"C:/Documents and Settings/romagny/Mes documents/test.xlsx", true);// classeur excel
PresentationDocument presentationDocument = PresentationDocument.Open(@"C:/Documents and Settings/romagny/Mes documents/test.pptx", true);// presentation powerpoint
|
|
// lister les parts (attention : ne liste pas les fichiers de relations .rels)
IEnumerator<IdPartPair> enumerator = wordprocessingDocument.Parts.GetEnumerator();
while (enumerator.MoveNext())
{
TreeNode t = new TreeNode(enumerator.Current.OpenXmlPart.Uri.ToString());
treeView1.Nodes.Add(t);
IEnumerator<IdPartPair> enumerator2 = enumerator.Current.OpenXmlPart.Parts.GetEnumerator();
while
(enumerator2.MoveNext())
{
t.Nodes.Add(enumerator2.Current.OpenXmlPart.Uri.ToString());
}
}
|
|
// obtenir toutes les parts du package
PackagePartCollection
parts = wordprocessingDocument.Package.GetParts();
// lister toutes les parts du
package(avec windowbase liste egalement les fichiers de relations .rels)
IEnumerator<PackagePart> enumerator = wordprocessingDocument.Package.GetParts().GetEnumerator();//
package.Parts.GetEnumerator();
while (enumerator.MoveNext())
{
treeView1.Nodes.Add(enumerator.Current.Uri.ToString());
}
|
|
MainDocumentPart mainDocumentPart =
wordprocessingDocument.MainDocumentPart;// obtient /word/document.xml
// accéder à une part
OpenXmlPart part =
wordprocessingDocument.GetPartById("rId1"); //par id
|
|
PackagePart part =
wordprocessingDocument.Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
|
|
// récupérer les properiétés du package (Creator,Keywords,LastModified,etc.)
PackageProperties properties =
wordprocessingDocument.PackageProperties;
|
|
private void button1_Click(object sender, EventArgs e)
{
// validation du package
OpenXmlPackageValidationSettings validationSettings =
new OpenXmlPackageValidationSettings();
validationSettings.EventHandler += new EventHandler<OpenXmlPackageValidationEventArgs>(validationSettings_EventHandler);
wordprocessingDocument.Validate(validationSettings);
// validation d'une part
mainDocumentPart.ValidateXml(@"C:/Program
Files/romagny13/Cs3OpenXmlManager v 1.0/schemas/wml.xsd", new System.Xml.Schema.ValidationEventHandler(validationPart_EventHandler));
}
void validationSettings_EventHandler(object
sender, OpenXmlPackageValidationEventArgs e)
{
MessageBox.Show(e.Message);
}
void validationPart_EventHandler(object sender,
System.Xml.Schema.ValidationEventArgs e)
{
MessageBox.Show(e.Message);
}
|
|
using (WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Create(@"C:/new.docx", WordprocessingDocumentType.Document))
{
// à ce niveau aucune part n'est
présente dans le package (seul [Content_Types].xml est présent)
wordprocessingDocument.AddCoreFilePropertiesPart(); // création /docProps/Core.xml
wordprocessingDocument.AddMainDocumentPart(); // création de /word/document.xml
using (Stream stream = wordprocessingDocument.MainDocumentPart.GetStream())
{
byte[]
buffer = (new UTF8Encoding()).GetBytes(@"<?xml version=""1.0"" encoding=""UTF-8""
standalone=""yes""?>
<w:document
xmlns:w=""http://schemas.openxmlformats.org/wordprocessingml/2006/main"">
<w:body><w:p><w:r><w:t>Hello world!</w:t></w:r></w:p></w:body>
</w:document>");
stream.Write(buffer, 0,
buffer.Length);
}
// ajout d'une part(ici par exemple une
ImagePart) ,il faut passer par MainDocumentPart ici
ImagePart
imagePart = wordprocessingDocument.MainDocumentPart.AddImagePart(ImagePartType.Jpeg); // ou
content type
using (FileStream stream = new FileStream(@"C:/Documents and
Settings/romagny/Mes documents/Mes images/monimage.jpg", FileMode.Open))
{
imagePart.FeedData(stream);
}
}
|
Open XML - Création de fichiers XML ouverts Office et
Open XML et les schémas métier : un
aperçu
1 - Création de fichiers XML ouverts Office
bien que les exemples de codes soient en VB.NET,ils sont plutot interessants : visionneuse de package,exemples de documents(templates,..),generation de docx,generation de lettre
un article donc tres bien pour decouvrir Open XML (avec word)
http://msdn.microsoft.com/msdnmag/issues/07/02/officespace/default.aspx?loc=fr
2 - Open XML et les schémas métier : un aperçu
http://msdn2.microsoft.com/fr-fr/library/880C55B0-BEB3-48f1-A3D8-ED5BB63B5023.aspx
Open XML Developer Workshop content ***
si vous désirez vous former à OpenXml
http://openxmldeveloper.org/articles/DeveloperWorkshopContent.aspx
Détail (présentations,manuels,samples):
00: Open XML Architecture
01: XML Programming in .NET
02: Open XML Packages
03: WordprocessingML Basics
04: WordprocessingML Advanced
05: Custom XML
06: SpreadsheetML Basics
07A: SpreadsheetML Advanced
07B: DrawingML
08: PresentationML
09: XSLT and Open XML
11: C++/CLI
+ Hands-on labs
Livre blanc Office 2007 - SOFT FLUENT
http://www.softfluent.com/default_fr.aspx
OpenXml4J - API pour gérer OpenXml en Java
développée par Wygwam - le projet est vraiment interessant ,une seule question mais pourquoi ont-ils developpés pour Java, bon d'accord Microsoft developpe bien sur sa propre API
mais bon ..
Webcasts OpenXml - présentation de projets autour de Open Xml
http://www.microsoft.com/france/vision/WebcastMsdn.aspx?EID=69bfdf27-55f1-4954-9e58-3f15dbdfcada
[OpenXml] - Ecma Office Open XML File Formats Standard
sont disponibles pdf et schémas du format
http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm
|
private System.IO.Packaging.Package _Package;
public System.IO.Packaging.Package
Package
{
get { return _Package;
}
set { _Package = value;
}
}
#region create package
public void CreateWordPackage(string PackageName)
{
Package = System.IO.Packaging.Package.Open(PackageName,
System.IO.FileMode.Create);
CreatedocPropsAppPackagePart();
CreatedocPropsCorePackagePart();
CreateWordDocumentPackagePart();
CreateWordstylesPackagePart(); // 1
CreateWordsettingsPackagePart(); // 2
CreateWordwebSettingsPackagePart(); // 3
CreateWordfonttablePackagePart(); // 4
CreateWordthemestheme1PackagePart(); //5
}
#endregion
#region docProps
public void
CreatedocPropsAppPackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/docProps/app.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.extended-properties+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><Properties xmlns=""http://schemas.openxmlformats.org/officeDocument/2006/extended-properties""
xmlns:vt=""http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes""><Template>Normal.dotm</Template><TotalTime>0</TotalTime><Pages>1</Pages><Words>0</Words><Characters>0</Characters><Application>Microsoft
Office
Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>0</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>12.0000</AppVersion></Properties>");
Package.CreateRelationship(new Uri("docProps/app.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties");
}
public void
CreatedocPropsCorePackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/docProps/core.xml", UriKind.Relative), "application/vnd.openxmlformats-package.core-properties+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><cp:coreProperties xmlns:cp=""http://schemas.openxmlformats.org/package/2006/metadata/core-properties""
xmlns:dc=""http://purl.org/dc/elements/1.1/"" xmlns:dcterms=""http://purl.org/dc/terms/"" xmlns:dcmitype=""http://purl.org/dc/dcmitype/""
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""><dc:title></dc:title><dc:subject></dc:subject><dc:creator>romagny</dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy>romagny</cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created
xsi:type=""dcterms:W3CDTF"">2007-06-21T07:32:00Z</dcterms:created><dcterms:modified
xsi:type=""dcterms:W3CDTF"">2007-06-21T07:32:00Z</dcterms:modified></cp:coreProperties>");
Package.CreateRelationship(new Uri("docProps/core.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties");
}
#endregion docProps
#region word
public void
CreateWordDocumentPackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/word/document.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><w:document xmlns:ve=""http://schemas.openxmlformats.org/markup-compatibility/2006"" xmlns:o=""urn:schemas-microsoft-com:office:office""
xmlns:r=""http://schemas.openxmlformats.org/officeDocument/2006/relationships"" xmlns:m=""http://schemas.openxmlformats.org/officeDocument/2006/math""
xmlns:v=""urn:schemas-microsoft-com:vml"" xmlns:wp=""http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"" xmlns:w10=""urn:schemas-microsoft-com:office:word""
xmlns:w=""http://schemas.openxmlformats.org/wordprocessingml/2006/main"" xmlns:wne=""http://schemas.microsoft.com/office/word/2006/wordml""><w:body><w:p w:rsidR=""001A5467""
w:rsidRDefault=""001A5467"" /><w:sectPr w:rsidR=""001A5467"" w:rsidSect=""001A5467""><w:pgSz w:w=""11906"" w:h=""16838"" /><w:pgMar w:top=""1417"" w:right=""1417""
w:bottom=""1417"" w:left=""1417"" w:header=""708"" w:footer=""708"" w:gutter=""0"" /><w:cols w:space=""708"" /><w:docGrid w:linePitch=""360""
/></w:sectPr></w:body></w:document>");
Package.CreateRelationship(new Uri("word/document.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument");
}
public void CreateWordstylesPackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/word/styles.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><w:styles xmlns:r=""http://schemas.openxmlformats.org/officeDocument/2006/relationships""
xmlns:w=""http://schemas.openxmlformats.org/wordprocessingml/2006/main""><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme=""minorHAnsi""
w:eastAsiaTheme=""minorHAnsi"" w:hAnsiTheme=""minorHAnsi"" w:cstheme=""minorBidi""/><w:sz w:val=""22""/><w:szCs w:val=""22""/><w:lang w:val=""fr-FR""
w:eastAsia=""en-US"" w:bidi=""ar-SA""/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after=""200"" w:line=""276""
w:lineRule=""auto""/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState=""0"" w:defUIPriority=""99"" w:defSemiHidden=""1""
w:defUnhideWhenUsed=""1"" w:defQFormat=""0"" w:count=""267""><w:lsdException w:name=""Normal"" w:semiHidden=""0"" w:uiPriority=""0"" w:unhideWhenUsed=""0""
w:qFormat=""1""/><w:lsdException w:name=""heading 1"" w:semiHidden=""0"" w:uiPriority=""9"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""heading 2""
w:uiPriority=""9"" w:qFormat=""1""/><w:lsdException w:name=""heading 3"" w:uiPriority=""9"" w:qFormat=""1""/><w:lsdException w:name=""heading 4"" w:uiPriority=""9""
w:qFormat=""1""/><w:lsdException w:name=""heading 5"" w:uiPriority=""9"" w:qFormat=""1""/><w:lsdException w:name=""heading 6"" w:uiPriority=""9""
w:qFormat=""1""/><w:lsdException w:name=""heading 7"" w:uiPriority=""9"" w:qFormat=""1""/><w:lsdException w:name=""heading 8"" w:uiPriority=""9""
w:qFormat=""1""/><w:lsdException w:name=""heading 9"" w:uiPriority=""9"" w:qFormat=""1""/><w:lsdException w:name=""toc 1"" w:uiPriority=""39""/><w:lsdException
w:name=""toc 2"" w:uiPriority=""39""/><w:lsdException w:name=""toc 3"" w:uiPriority=""39""/><w:lsdException w:name=""toc 4"" w:uiPriority=""39""/><w:lsdException
w:name=""toc 5"" w:uiPriority=""39""/><w:lsdException w:name=""toc 6"" w:uiPriority=""39""/><w:lsdException w:name=""toc 7"" w:uiPriority=""39""/><w:lsdException
w:name=""toc 8"" w:uiPriority=""39""/><w:lsdException w:name=""toc 9"" w:uiPriority=""39""/><w:lsdException w:name=""caption"" w:uiPriority=""35""
w:qFormat=""1""/><w:lsdException w:name=""Title"" w:semiHidden=""0"" w:uiPriority=""10"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Default Paragraph
Font"" w:uiPriority=""1""/><w:lsdException w:name=""Subtitle"" w:semiHidden=""0"" w:uiPriority=""11"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Strong""
w:semiHidden=""0"" w:uiPriority=""22"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Emphasis"" w:semiHidden=""0"" w:uiPriority=""20"" w:unhideWhenUsed=""0""
w:qFormat=""1""/><w:lsdException w:name=""Table Grid"" w:semiHidden=""0"" w:uiPriority=""59"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Placeholder Text""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""No Spacing"" w:semiHidden=""0"" w:uiPriority=""1"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Light
Shading"" w:semiHidden=""0"" w:uiPriority=""60"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List"" w:semiHidden=""0"" w:uiPriority=""61""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid"" w:semiHidden=""0"" w:uiPriority=""62"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 1""
w:semiHidden=""0"" w:uiPriority=""63"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 2"" w:semiHidden=""0"" w:uiPriority=""64""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 1"" w:semiHidden=""0"" w:uiPriority=""65"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 2""
w:semiHidden=""0"" w:uiPriority=""66"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1"" w:semiHidden=""0"" w:uiPriority=""67""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 2"" w:semiHidden=""0"" w:uiPriority=""68"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 3""
w:semiHidden=""0"" w:uiPriority=""69"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List"" w:semiHidden=""0"" w:uiPriority=""70""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Shading"" w:semiHidden=""0"" w:uiPriority=""71"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful List""
w:semiHidden=""0"" w:uiPriority=""72"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid"" w:semiHidden=""0"" w:uiPriority=""73""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Shading Accent 1"" w:semiHidden=""0"" w:uiPriority=""60"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List
Accent 1"" w:semiHidden=""0"" w:uiPriority=""61"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid Accent 1"" w:semiHidden=""0"" w:uiPriority=""62""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 1 Accent 1"" w:semiHidden=""0"" w:uiPriority=""63"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium
Shading 2 Accent 1"" w:semiHidden=""0"" w:uiPriority=""64"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 1 Accent 1"" w:semiHidden=""0"" w:uiPriority=""65""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Revision"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""List Paragraph"" w:semiHidden=""0"" w:uiPriority=""34""
w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Quote"" w:semiHidden=""0"" w:uiPriority=""29"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException
w:name=""Intense Quote"" w:semiHidden=""0"" w:uiPriority=""30"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Medium List 2 Accent 1"" w:semiHidden=""0""
w:uiPriority=""66"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1 Accent 1"" w:semiHidden=""0"" w:uiPriority=""67"" w:unhideWhenUsed=""0""/><w:lsdException
w:name=""Medium Grid 2 Accent 1"" w:semiHidden=""0"" w:uiPriority=""68"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 3 Accent 1"" w:semiHidden=""0""
w:uiPriority=""69"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List Accent 1"" w:semiHidden=""0"" w:uiPriority=""70"" w:unhideWhenUsed=""0""/><w:lsdException
w:name=""Colorful Shading Accent 1"" w:semiHidden=""0"" w:uiPriority=""71"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful List Accent 1"" w:semiHidden=""0""
w:uiPriority=""72"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid Accent 1"" w:semiHidden=""0"" w:uiPriority=""73"" w:unhideWhenUsed=""0""/><w:lsdException
w:name=""Light Shading Accent 2"" w:semiHidden=""0"" w:uiPriority=""60"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List Accent 2"" w:semiHidden=""0""
w:uiPriority=""61"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid Accent 2"" w:semiHidden=""0"" w:uiPriority=""62"" w:unhideWhenUsed=""0""/><w:lsdException
w:name=""Medium Shading 1 Accent 2"" w:semiHidden=""0"" w:uiPriority=""63"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 2 Accent 2"" w:semiHidden=""0""
w:uiPriority=""64"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 1 Accent 2"" w:semiHidden=""0"" w:uiPriority=""65"" w:unhideWhenUsed=""0""/><w:lsdException
w:name=""Medium List 2 Accent 2"" w:semiHidden=""0"" w:uiPriority=""66"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1 Accent 2"" w:semiHidden=""0""
w:uiPriority=""67"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 2 Accent 2"" w:semiHidden=""0"" w:uiPriority=""68"" w:unhideWhenUsed=""0""/><w:lsdException
w:name=""Medium Grid 3 Accent 2"" w:semiHidden=""0"" w:uiPriority=""69"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List Accent 2"" w:semiHidden=""0"" w:uiPriority=""70""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Shading Accent 2"" w:semiHidden=""0"" w:uiPriority=""71"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful
List Accent 2"" w:semiHidden=""0"" w:uiPriority=""72"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid Accent 2"" w:semiHidden=""0"" w:uiPriority=""73""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Shading Accent 3"" w:semiHidden=""0"" w:uiPriority=""60"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List
Accent 3"" w:semiHidden=""0"" w:uiPriority=""61"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid Accent 3"" w:semiHidden=""0"" w:uiPriority=""62""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 1 Accent 3"" w:semiHidden=""0"" w:uiPriority=""63"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium
Shading 2 Accent 3"" w:semiHidden=""0"" w:uiPriority=""64"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 1 Accent 3"" w:semiHidden=""0"" w:uiPriority=""65""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 2 Accent 3"" w:semiHidden=""0"" w:uiPriority=""66"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1
Accent 3"" w:semiHidden=""0"" w:uiPriority=""67"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 2 Accent 3"" w:semiHidden=""0"" w:uiPriority=""68""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 3 Accent 3"" w:semiHidden=""0"" w:uiPriority=""69"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List
Accent 3"" w:semiHidden=""0"" w:uiPriority=""70"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Shading Accent 3"" w:semiHidden=""0"" w:uiPriority=""71""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful List Accent 3"" w:semiHidden=""0"" w:uiPriority=""72"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid
Accent 3"" w:semiHidden=""0"" w:uiPriority=""73"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Shading Accent 4"" w:semiHidden=""0"" w:uiPriority=""60""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List Accent 4"" w:semiHidden=""0"" w:uiPriority=""61"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid
Accent 4"" w:semiHidden=""0"" w:uiPriority=""62"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 1 Accent 4"" w:semiHidden=""0"" w:uiPriority=""63""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 2 Accent 4"" w:semiHidden=""0"" w:uiPriority=""64"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium
List 1 Accent 4"" w:semiHidden=""0"" w:uiPriority=""65"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 2 Accent 4"" w:semiHidden=""0"" w:uiPriority=""66""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1 Accent 4"" w:semiHidden=""0"" w:uiPriority=""67"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 2
Accent 4"" w:semiHidden=""0"" w:uiPriority=""68"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 3 Accent 4"" w:semiHidden=""0"" w:uiPriority=""69""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List Accent 4"" w:semiHidden=""0"" w:uiPriority=""70"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Shading
Accent 4"" w:semiHidden=""0"" w:uiPriority=""71"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful List Accent 4"" w:semiHidden=""0"" w:uiPriority=""72""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid Accent 4"" w:semiHidden=""0"" w:uiPriority=""73"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Shading
Accent 5"" w:semiHidden=""0"" w:uiPriority=""60"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List Accent 5"" w:semiHidden=""0"" w:uiPriority=""61""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid Accent 5"" w:semiHidden=""0"" w:uiPriority=""62"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 1
Accent 5"" w:semiHidden=""0"" w:uiPriority=""63"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 2 Accent 5"" w:semiHidden=""0"" w:uiPriority=""64""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 1 Accent 5"" w:semiHidden=""0"" w:uiPriority=""65"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 2
Accent 5"" w:semiHidden=""0"" w:uiPriority=""66"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1 Accent 5"" w:semiHidden=""0"" w:uiPriority=""67""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 2 Accent 5"" w:semiHidden=""0"" w:uiPriority=""68"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 3
Accent 5"" w:semiHidden=""0"" w:uiPriority=""69"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List Accent 5"" w:semiHidden=""0"" w:uiPriority=""70""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Shading Accent 5"" w:semiHidden=""0"" w:uiPriority=""71"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful
List Accent 5"" w:semiHidden=""0"" w:uiPriority=""72"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid Accent 5"" w:semiHidden=""0"" w:uiPriority=""73""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Shading Accent 6"" w:semiHidden=""0"" w:uiPriority=""60"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light List
Accent 6"" w:semiHidden=""0"" w:uiPriority=""61"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Light Grid Accent 6"" w:semiHidden=""0"" w:uiPriority=""62""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Shading 1 Accent 6"" w:semiHidden=""0"" w:uiPriority=""63"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium
Shading 2 Accent 6"" w:semiHidden=""0"" w:uiPriority=""64"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 1 Accent 6"" w:semiHidden=""0"" w:uiPriority=""65""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium List 2 Accent 6"" w:semiHidden=""0"" w:uiPriority=""66"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 1
Accent 6"" w:semiHidden=""0"" w:uiPriority=""67"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 2 Accent 6"" w:semiHidden=""0"" w:uiPriority=""68""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Medium Grid 3 Accent 6"" w:semiHidden=""0"" w:uiPriority=""69"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Dark List
Accent 6"" w:semiHidden=""0"" w:uiPriority=""70"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Shading Accent 6"" w:semiHidden=""0"" w:uiPriority=""71""
w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful List Accent 6"" w:semiHidden=""0"" w:uiPriority=""72"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Colorful Grid
Accent 6"" w:semiHidden=""0"" w:uiPriority=""73"" w:unhideWhenUsed=""0""/><w:lsdException w:name=""Subtle Emphasis"" w:semiHidden=""0"" w:uiPriority=""19"" w:unhideWhenUsed=""0""
w:qFormat=""1""/><w:lsdException w:name=""Intense Emphasis"" w:semiHidden=""0"" w:uiPriority=""21"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Subtle
Reference"" w:semiHidden=""0"" w:uiPriority=""31"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Intense Reference"" w:semiHidden=""0"" w:uiPriority=""32""
w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException w:name=""Book Title"" w:semiHidden=""0"" w:uiPriority=""33"" w:unhideWhenUsed=""0"" w:qFormat=""1""/><w:lsdException
w:name=""Bibliography"" w:uiPriority=""37""/><w:lsdException w:name=""TOC Heading"" w:uiPriority=""39"" w:qFormat=""1""/></w:latentStyles><w:style w:type=""paragraph""
w:default=""1"" w:styleId=""Normal""><w:name w:val=""Normal""/><w:qFormat/><w:rsid w:val=""00934EB5""/></w:style><w:style w:type=""character""
w:default=""1"" w:styleId=""Policepardfaut""><w:name w:val=""Default Paragraph Font""/><w:uiPriority
w:val=""1""/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type=""table"" w:default=""1"" w:styleId=""TableauNormal""><w:name w:val=""Normal
Table""/><w:uiPriority w:val=""99""/><w:semiHidden/><w:unhideWhenUsed/><w:qFormat/><w:tblPr><w:tblInd w:w=""0""
w:type=""dxa""/><w:tblCellMar><w:top w:w=""0"" w:type=""dxa""/><w:left w:w=""108"" w:type=""dxa""/><w:bottom w:w=""0"" w:type=""dxa""/><w:right w:w=""108""
w:type=""dxa""/></w:tblCellMar></w:tblPr></w:style><w:style w:type=""numbering"" w:default=""1"" w:styleId=""Aucuneliste""><w:name w:val=""No
List""/><w:uiPriority w:val=""99""/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles>");
System.IO.Packaging.PackagePart DocumentRels =
Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
DocumentRels.CreateRelationship(new Uri("styles.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles");
}
public void
CreateWordsettingsPackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/word/settings.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><w:settings xmlns:o=""urn:schemas-microsoft-com:office:office""
xmlns:r=""http://schemas.openxmlformats.org/officeDocument/2006/relationships"" xmlns:m=""http://schemas.openxmlformats.org/officeDocument/2006/math""
xmlns:v=""urn:schemas-microsoft-com:vml"" xmlns:w10=""urn:schemas-microsoft-com:office:word"" xmlns:w=""http://schemas.openxmlformats.org/wordprocessingml/2006/main""
xmlns:sl=""http://schemas.openxmlformats.org/schemaLibrary/2006/main""><w:zoom w:percent=""100""/><w:defaultTabStop w:val=""708""/><w:hyphenationZone
w:val=""425""/><w:characterSpacingControl w:val=""doNotCompress""/><w:compat/><w:rsids><w:rsidRoot w:val=""00A918D7""/><w:rsid
w:val=""00934EB5""/><w:rsid w:val=""00A918D7""/></w:rsids><m:mathPr><m:mathFont m:val=""Cambria Math""/><m:brkBin m:val=""before""/><m:brkBinSub
m:val=""--""/><m:smallFrac m:val=""off""/><m:dispDef/><m:lMargin m:val=""0""/><m:rMargin m:val=""0""/><m:defJc m:val=""centerGroup""/><m:wrapIndent
m:val=""1440""/><m:intLim m:val=""subSup""/><m:naryLim m:val=""undOvr""/></m:mathPr><w:themeFontLang w:val=""fr-FR""/><w:clrSchemeMapping w:bg1=""light1""
w:t1=""dark1"" w:bg2=""light2"" w:t2=""dark2"" w:accent1=""accent1"" w:accent2=""accent2"" w:accent3=""accent3"" w:accent4=""accent4"" w:accent5=""accent5"" w:accent6=""accent6""
w:hyperlink=""hyperlink"" w:followedHyperlink=""followedHyperlink""/><w:shapeDefaults><o:shapedefaults v:ext=""edit"" spidmax=""2050""/><o:shapelayout
v:ext=""edit""><o:idmap v:ext=""edit"" data=""1""/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="",""/><w:listSeparator
w:val="";""/></w:settings>");
System.IO.Packaging.PackagePart DocumentRels =
Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
DocumentRels.CreateRelationship(new Uri("settings.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings");
}
public void
CreateWordwebSettingsPackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/word/webSettings.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><w:webSettings xmlns:r=""http://schemas.openxmlformats.org/officeDocument/2006/relationships""
xmlns:w=""http://schemas.openxmlformats.org/wordprocessingml/2006/main""><w:optimizeForBrowser/></w:webSettings>");
System.IO.Packaging.PackagePart DocumentRels =
Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
DocumentRels.CreateRelationship(new Uri("webSettings.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings");
}
public void
CreateWordfonttablePackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/word/fontTable.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><w:fonts xmlns:r=""http://schemas.openxmlformats.org/officeDocument/2006/relationships""
xmlns:w=""http://schemas.openxmlformats.org/wordprocessingml/2006/main""><w:font w:name=""Calibri""><w:panose1 w:val=""020F0502020204030204"" /><w:charset w:val=""00""
/><w:family w:val=""swiss"" /><w:pitch w:val=""variable"" /><w:sig w:usb0=""A00002EF"" w:usb1=""4000207B"" w:usb2=""00000000"" w:usb3=""00000000"" w:csb0=""0000009F""
w:csb1=""00000000"" /></w:font><w:font w:name=""Times New Roman""><w:panose1 w:val=""02020603050405020304"" /><w:charset w:val=""00"" /><w:family
w:val=""roman"" /><w:pitch w:val=""variable"" /><w:sig w:usb0=""20002A87"" w:usb1=""80000000"" w:usb2=""00000008"" w:usb3=""00000000"" w:csb0=""000001FF"" w:csb1=""00000000""
/></w:font><w:font w:name=""Cambria""><w:panose1 w:val=""02040503050406030204"" /><w:charset w:val=""00"" /><w:family w:val=""roman"" /><w:pitch
w:val=""variable"" /><w:sig w:usb0=""A00002EF"" w:usb1=""4000004B"" w:usb2=""00000000"" w:usb3=""00000000"" w:csb0=""0000009F"" w:csb1=""00000000""
/></w:font></w:fonts>");
System.IO.Packaging.PackagePart DocumentRels =
Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
DocumentRels.CreateRelationship(new Uri("fontTable.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable");
}
|
|
public void
CreateWordthemestheme1PackagePart()
{
System.IO.Packaging.PackagePart oPackagePart =
Package.CreatePart(new Uri("/word/theme/theme1.xml", UriKind.Relative), "application/vnd.openxmlformats-officedocument.theme+xml");
CreateDocument(oPackagePart, @"<?xml version=""1.0""
encoding=""UTF-8"" standalone=""yes""?><a:theme xmlns:a=""http://schemas.openxmlformats.org/drawingml/2006/main"" name=""Thème Office""><a:themeElements><a:clrScheme
name=""Office""><a:dk1><a:sysClr val=""windowText"" lastClr=""000000""/></a:dk1><a:lt1><a:sysClr val=""window""
lastClr=""FFFFFF""/></a:lt1><a:dk2><a:srgbClr val=""1F497D""/></a:dk2><a:lt2><a:srgbClr val=""EEECE1""/></a:lt2><a:accent1><a:srgbClr
val=""4F81BD""/></a:accent1><a:accent2><a:srgbClr val=""C0504D""/></a:accent2><a:accent3><a:srgbClr
val=""9BBB59""/></a:accent3><a:accent4><a:srgbClr val=""8064A2""/></a:accent4><a:accent5><a:srgbClr
val=""4BACC6""/></a:accent5><a:accent6><a:srgbClr val=""F79646""/></a:accent6><a:hlink><a:srgbClr
val=""0000FF""/></a:hlink><a:folHlink><a:srgbClr val=""800080""/></a:folHlink></a:clrScheme><a:fontScheme
name=""Office""><a:majorFont><a:latin typeCambria""/><a:ea type""/><a:cs type""/><a:font script=""Jpan"" typeMS ????""/><a:font script=""Hang"" type??
??""/><a:font script=""Hans"" type??""/><a:font script=""Hant"" type????""/><a:font script=""Arab"" typeTimes New Roman""/><a:font script=""Hebr"" typeTimes New
Roman""/><a:font script=""Thai"" typeAngsana New""/><a:font script=""Ethi"" typeNyala""/><a:font script=""Beng"" typeVrinda""/><a:font script=""Gujr""
typeShruti""/><a:font script=""Khmr"" typeMoolBoran""/><a:font script=""Knda"" typeTunga""/><a:font script=""Guru"" typeRaavi""/><a:font script=""Cans""
typeEuphemia""/><a:font script=""Cher"" typePlantagenet Cherokee""/><a:font script=""Yiii"" typeMicrosoft Yi Baiti""/><a:font script=""Tibt"" typeMicrosoft
Himalaya""/><a:font script=""Thaa"" typeMV Boli""/><a:font script=""Deva"" typeMangal""/><a:font script=""Telu"" typeGautami""/><a:font script=""Taml""
typeLatha""/><a:font script=""Syrc"" typeEstrangelo Edessa""/><a:font script=""Orya"" typeKalinga""/><a:font script=""Mlym"" typeKartika""/><a:font script=""Laoo""
typeDokChampa""/><a:font script=""Sinh"" typeIskoola Pota""/><a:font script=""Mong"" typeMongolian Baiti""/><a:font script=""Viet"" typeTimes New Roman""/><a:font
script=""Uigh"" typeMicrosoft Uighur""/></a:majorFont><a:minorFont><a:latin typeCalibri""/><a:ea type""/><a:cs type""/><a:font script=""Jpan"" typeMS
??""/><a:font script=""Hang"" type?? ??""/><a:font script=""Hans"" type??""/><a:font script=""Hant"" type????""/><a:font script=""Arab"" typeArial""/><a:font
script=""Hebr"" typeArial""/><a:font script=""Thai"" typeCordia New""/><a:font script=""Ethi"" typeNyala""/><a:font script=""Beng"" typeVrinda""/><a:font
script=""Gujr"" typeShruti""/><a:font script=""Khmr"" typeDaunPenh""/><a:font script=""Knda"" typeTunga""/><a:font script=""Guru"" typeRaavi""/><a:font
script=""Cans"" typeEuphemia""/><a:font script=""Cher"" typePlantagenet Cherokee""/><a:font script=""Yiii"" typeMicrosoft Yi Baiti""/><a:font script=""Tibt""
typeMicrosoft Himalaya""/><a:font script=""Thaa"" typeMV Boli""/><a:font script=""Deva"" typeMangal""/><a:font script=""Telu"" typeGautami""/><a:font
script=""Taml"" typeLatha""/><a:font script=""Syrc"" typeEstrangelo Edessa""/><a:font script=""Orya"" typeKalinga""/><a:font script=""Mlym"" typeKartika""/><a:font
script=""Laoo"" typeDokChampa""/><a:font script=""Sinh"" typeIskoola Pota""/><a:font script=""Mong"" typeMongolian Baiti""/><a:font script=""Viet""
typeArial""/><a:font script=""Uigh"" typeMicrosoft Uighur""/></a:minorFont></a:fontScheme><a:fmtScheme
name=""Office""><a:fillStyleLst><a:solidFill><a:schemeClr val=""phClr""/></a:solidFill><a:gradFill rotWithShape=""1""><a:gsLst><a:gs
pos=""0""><a:schemeClr val=""phClr""><a:tint val=""50000""/><a:satMod val=""300000""/></a:schemeClr></a:gs><a:gs pos=""35000""><a:schemeClr
val=""phClr""><a:tint val=""37000""/><a:satMod val=""300000""/></a:schemeClr></a:gs><a:gs pos=""100000""><a:schemeClr val=""phClr""><a:tint
val=""15000""/><a:satMod val=""350000""/></a:schemeClr></a:gs></a:gsLst><a:lin ang=""16200000"" scaled=""1""/></a:gradFill><a:gradFill
rotWithShape=""1""><a:gsLst><a:gs pos=""0""><a:schemeClr val=""phClr""><a:shade val=""51000""/><a:satMod
val=""130000""/></a:schemeClr></a:gs><a:gs pos=""80000""><a:schemeClr val=""phClr""><a:shade val=""93000""/><a:satMod
val=""130000""/></a:schemeClr></a:gs><a:gs pos=""100000""><a:schemeClr val=""phClr""><a:shade val=""94000""/><a:satMod
val=""135000""/></a:schemeClr></a:gs></a:gsLst><a:lin ang=""16200000"" scaled=""0""/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln
w=""9525"" cap=""flat"" cmpd=""sng"" algn=""ctr""><a:solidFill><a:schemeClr val=""phClr""><a:shade val=""95000""/><a:satMod
val=""105000""/></a:schemeClr></a:solidFill><a:prstDash val=""solid""/></a:ln><a:ln w=""25400"" cap=""flat"" cmpd=""sng""
algn=""ctr""><a:solidFill><a:schemeClr val=""phClr""/></a:solidFill><a:prstDash val=""solid""/></a:ln><a:ln w=""38100"" cap=""flat"" cmpd=""sng""
algn=""ctr""><a:solidFill><a:schemeClr val=""phClr""/></a:solidFill><a:prstDash
val=""solid""/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst><a:outerShdw blurRad=""40000"" dist=""20000"" dir=""5400000""
rotWithShape=""0""><a:srgbClr val=""000000""><a:alpha
val=""38000""/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad=""40000"" dist=""23000""
dir=""5400000"" rotWithShape=""0""><a:srgbClr val=""000000""><a:alpha
val=""35000""/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad=""40000"" dist=""23000""
dir=""5400000"" rotWithShape=""0""><a:srgbClr val=""000000""><a:alpha val=""35000""/></a:srgbClr></a:outerShdw></a:effectLst><a:scene3d><a:camera
prst=""orthographicFront""><a:rot lat=""0"" lon=""0"" rev=""0""/></a:camera><a:lightRig rig=""threePt"" dir=""t""><a:rot lat=""0"" lon=""0""
rev=""1200000""/></a:lightRig></a:scene3d><a:sp3d><a:bevelT w=""63500""
h=""25400""/></a:sp3d></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr
val=""phClr""/></a:solidFill><a:gradFill rotWithShape=""1""><a:gsLst><a:gs pos=""0""><a:schemeClr val=""phClr""><a:tint val=""40000""/><a:satMod
val=""350000""/></a:schemeClr></a:gs><a:gs pos=""40000""><a:schemeClr val=""phClr""><a:tint val=""45000""/><a:shade val=""99000""/><a:satMod
val=""350000""/></a:schemeClr></a:gs><a:gs pos=""100000""><a:schemeClr val=""phClr""><a:shade val=""20000""/><a:satMod
val=""255000""/></a:schemeClr></a:gs></a:gsLst><a:path path=""circle""><a:fillToRect l=""50000"" t=""-80000"" r=""50000""
b=""180000""/></a:path></a:gradFill><a:gradFill rotWithShape=""1""><a:gsLst><a:gs pos=""0""><a:schemeClr val=""phClr""><a:tint
val=""80000""/><a:satMod val=""300000""/></a:schemeClr></a:gs><a:gs pos=""100000""><a:schemeClr val=""phClr""><a:shade val=""30000""/><a:satMod
val=""200000""/></a:schemeClr></a:gs></a:gsLst><a:path path=""circle""><a:fillToRect l=""50000"" t=""50000"" r=""50000""
b=""50000""/></a:path></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/></a:theme>");
System.IO.Packaging.PackagePart DocumentRels =
Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
DocumentRels.CreateRelationship(new Uri("theme/theme1.xml", UriKind.Relative), System.IO.Packaging.TargetMode.Internal, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme");
}
#endregion word
public void
CreateDocument(System.IO.Packaging.PackagePart oPackagePart, string xml)
{
using (System.IO.Stream
oStream = oPackagePart.GetStream())
{
System.Xml.XmlDocument
oXmlDocument = new System.Xml.XmlDocument();
oXmlDocument.LoadXml(xml);
oXmlDocument.Save(oStream);
}
}
|
|
CreateWordPackage("test.docx");
|
un lien vers le blog de Neodante (communauté CodeS-SourceS) ou il fait une rapide liste d'outils pour OpenXml
Suivez Roland - Garros avec Excel
grace au tableau automatisé pour les résultats des matchs (classeur *.xls)
http://blogs.microsoft.fr/franckha/archive/2006/04/06/24554.aspx
Webcasts Office
http://www.microsoft.com/france/office/2007/webcasts_edemos.mspx
Quelques liens et outils pour OpenXml
http://www.microsoft.com/france/msdn/office/openxml/default.mspx
le site OpenXmlDeveloper.org
http://openxmldeveloper.org/
Open XML Package Explorer - outil pour explorer les documents Office 2007
http://www.codeplex.com/PackageExplorer
2007 Office System Sample: Open XML File Format Code Snippets for Visual Studio 2005
http://www.microsoft.com/downloads/details.aspx?FamilyID=8d46c01f-e3f6-4069-869d-90b8b096b556&displaylang=en
Avoir l'intellisense dans le fichier XML de customisation du ruban Office 2007
2007 Office System: XML Schema Reference (customUI.xsd)