Overblog Suivre ce blog
Administration Créer mon blog

Présentation

  • : Romagny13 - Du .NET,du pur .NET
  • Romagny13 - Du .NET,du pur .NET
  • : Cycle de progression Faire (quelque chose qui marche) -> comprendre ce que l’on fait/comment cela marche -> pousser plus loin les notions
  • Contact

Recherche

Articles Récents

12 novembre 2007 1 12 /11 /novembre /2007 14:22
[OpenXML] – Quelques content controls

Ceux-ci sont placés dans document.xml (/word/document.xml)
-          w:sdt
o   w:sdtPr
o   w:sdtContent
 
1 - Rich text content control
   <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>
 
2 – Text content control
    <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>
 
3 – Picture content control
   <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>
Repost 0
Published by Romagny13 - dans Office
commenter cet article
12 novembre 2007 1 12 /11 /novembre /2007 14:19
4 – ComboBox content control
<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>
 
5 – Drop-Down List  content control
<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>
 
6 – Date Picker content control
   <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>
 
Repost 0
Published by Romagny13 - dans Office
commenter cet article
12 novembre 2007 1 12 /11 /novembre /2007 10:47
[OpenXML] – images internes et externes au package 
1  - [Content_Types].xml 
(Il faut que l’extension soit ajoutée)
<Default Extension="jpg" ContentType="image/jpeg"/>
 
2 - /word/_rels/document.xml.rels
a-Une image interne au package
<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" 
Id="rId6"
Target="/word/media/miaouinterne.jpg"/>
 
b-Une image dans un répertoire externe au package
<Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Target="miaouexterne.jpg"
Id="rId7"
TargetMode="External" />
 
c-Une image depuis site web
 <Relationship
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="http://shaan.typepad.com/photos/1/chat.jpg"
Id="rId8"
TargetMode="External" />
 
3- /word/document.xml
Au plus simple (dans <w:body></w:body>)
 
 <w:p>
      <w:r>
        <w:pict>
          <v:shape>
            <v:imagedata r:id="rId6" />
          </v:shape>
        </w:pict>
      </w:r>
    </w:p>
 
Repost 0
Published by Romagny13 - dans Office
commenter cet article
6 septembre 2007 4 06 /09 /septembre /2007 23:51
SDK Open XML – présentation rapide

Pour télécharger le SDK c’est ici

       -          Ajouter une référence au SDK Open XML de Microsoft
-          Ajouter une référence à windowbase (dll du framework .NET 3.0)
I Bien comprendre la structure du SDK
 
SDKOpenXml-copie-1.JPG
-          OpenXmlPackage et OpenXmlPart héritent de la classe abstraite OpenXmlContainer et disposent donc de ses méthodes
-          WordProcessingDocument (pour Word),SpreadsheetDocument(pour excel),PresentationDocument(pour Powerpoint) sont les classes de bases pour le management des packages,celles-ci héritent de la classe abstraite OpenXmlPackage,
 
Inconvénient on ne peut pas faire
  OpenXmlPackage wordprocessingDocument = new WordprocessingDocument();
 
>Il faut passer par les méthodes static Open et Create de WordProcessingDocument,SpreadsheetDocument,PresentationDocument … je trouve cela dommage cela empêche une certaine abstraction
>Toutes les parts héritent de la classe abstraite  OpenXmlPart  (chaque classe dispose donc de ses méthodes ainsi que celles de OpenXmlPart)
>Les différentes classes de parts (héritant donc de openXmlPart) ne disposent ni de constructeur , on n’a pas non plus de méthode static permettant de les créer, il faut obligatoirement passer par les méthodes offertes, c’est un second point noir je trouve
II – Lecture
Note : les exemples se basent sur word mais pour excel et powerpoint c’est exactement la même démarche
1 – Ouvrir un package
            // 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
 
 
2 –  obtenir et lister les parts d’un package
// 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());
                }
 
            }
 
Grâce à windowbase
            // 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());
            }
 
3 – Accèder à une part
            MainDocumentPart mainDocumentPart = wordprocessingDocument.MainDocumentPart;// obtient /word/document.xml
            // accéder à une part
            OpenXmlPart part = wordprocessingDocument.GetPartById("rId1"); //par id
 
 
Par windowbase on peut accéder par l’uri
            PackagePart part = wordprocessingDocument.Package.GetPart(new Uri("/word/document.xml", UriKind.Relative));
 
4 – Récupérer les properties du package
    // récupérer les properiétés du package (Creator,Keywords,LastModified,etc.)
            PackageProperties properties = wordprocessingDocument.PackageProperties;
 
5 – Validation package ,d’une part
         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);
        }
 
 
 
III – Ecriture
Note : ici je ne crées pas toutes les parts d’un package word, ce n’est qu’un exemple montrant
1 comment créer un nouveau package
2 ajouter une part « prédéfinie »
3 créer et ajouter une part quelconque
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);
                }
            }          
 
 
J’ai développé un outil pour openXML , il se peut que je mette à jour avec le SDK Open XML de Microsoft , vous pouvez le trouver sur Codeplex
 
 
Repost 0
Published by Romagny13 - dans Office
commenter cet article
22 août 2007 3 22 /08 /août /2007 09:48

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

Repost 0
Published by Romagny13 - dans Office
commenter cet article
14 juillet 2007 6 14 /07 /juillet /2007 01:43

Webcasts OpenXml - présentation de projets autour de Open Xml

http://www.microsoft.com/france/vision/WebcastMsdn.aspx?EID=69bfdf27-55f1-4954-9e58-3f15dbdfcada

Repost 0
Published by Romagny13 - dans Office
commenter cet article
21 juin 2007 4 21 /06 /juin /2007 10:30
[ OpenXml ]  – Créer un document Word 2007 (package) comprenant tous les fichiers et relations à partir de rien
 
J’utilise ici beaucoup LoadXml mais,d’autres posts sur OpenXml devraient arriver car je développe un outil pour justement mieux gérer ce format
   
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");
        }
Repost 0
Published by Romagny13 - dans Office
commenter cet article
19 avril 2007 4 19 /04 /avril /2007 19:04

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

 

Repost 0
Published by Romagny13 - dans Office
commenter cet article
17 avril 2007 2 17 /04 /avril /2007 13:28

Avoir l'intellisense dans le fichier XML de customisation du ruban Office 2007

2007 Office System: XML Schema Reference (customUI.xsd)

http://www.microsoft.com/downloads/details.aspx?familyid=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&displaylang=en

Repost 0
Published by Romagny13 - dans Office
commenter cet article
17 avril 2007 2 17 /04 /avril /2007 12:34

Dossier Thématique : comment développer son Ruban sur Office 2007

http://www.microsoft.com/france/msdn/office/office2007/dossier-developpement-ruban.mspx

Repost 0
Published by Romagny13 - dans Office
commenter cet article