Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

XML/XSLT Word Report Generator

, 11 Jan 2009
The tool is based on XML/XSLT, and allows a user to create a Word report from scratch, namely: construct SQL query, construct a WordML template, generate a document.
<?xml version="1.0" encoding="utf-8"?>
<root>
  <!-- 
    Microsoft ResX Schema 
    
    Version 2.0
    
    The primary goals of this format is to allow a simple XML format 
    that is mostly human readable. The generation and parsing of the 
    various data types are done through the TypeConverter classes 
    associated with the data types.
    
    Example:
    
    ... ado.net/XML headers & schema ...
    <resheader name="resmimetype">text/microsoft-resx</resheader>
    <resheader name="version">2.0</resheader>
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
        <value>[base64 mime encoded serialized .NET Framework object]</value>
    </data>
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
        <comment>This is a comment</comment>
    </data>
                
    There are any number of "resheader" rows that contain simple 
    name/value pairs.
    
    Each data row contains a name, and value. The row also contains a 
    type or mimetype. Type corresponds to a .NET class that support 
    text/value conversion through the TypeConverter architecture. 
    Classes that don't support this are serialized and stored with the 
    mimetype set.
    
    The mimetype is used for serialized objects, and tells the 
    ResXResourceReader how to depersist the object. This is currently not 
    extensible. For a given mimetype the value must be set accordingly:
    
    Note - application/x-microsoft.net.object.binary.base64 is the format 
    that the ResXResourceWriter will generate, however the reader can 
    read any of the formats listed below.
    
    mimetype: application/x-microsoft.net.object.binary.base64
    value   : The object must be serialized with 
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
            : and then encoded with base64 encoding.
    
    mimetype: application/x-microsoft.net.object.soap.base64
    value   : The object must be serialized with 
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
            : and then encoded with base64 encoding.

    mimetype: application/x-microsoft.net.object.bytearray.base64
    value   : The object must be serialized into a byte array 
            : using a System.ComponentModel.TypeConverter
            : and then encoded with base64 encoding.
    -->
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
    <xsd:element name="root" msdata:IsDataSet="true">
      <xsd:complexType>
        <xsd:choice maxOccurs="unbounded">
          <xsd:element name="metadata">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
              </xsd:sequence>
              <xsd:attribute name="name" use="required" type="xsd:string" />
              <xsd:attribute name="type" type="xsd:string" />
              <xsd:attribute name="mimetype" type="xsd:string" />
              <xsd:attribute ref="xml:space" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="assembly">
            <xsd:complexType>
              <xsd:attribute name="alias" type="xsd:string" />
              <xsd:attribute name="name" type="xsd:string" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="data">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
              <xsd:attribute ref="xml:space" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="resheader">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" />
            </xsd:complexType>
          </xsd:element>
        </xsd:choice>
      </xsd:complexType>
    </xsd:element>
  </xsd:schema>
  <resheader name="resmimetype">
    <value>text/microsoft-resx</value>
  </resheader>
  <resheader name="version">
    <value>2.0</value>
  </resheader>
  <resheader name="reader">
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  <data name="btn_xml.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAShJREFUOE9jYKAH
        mD3n7v+u3lv/Z8x48b+q7tz/4qK9/0myd/GCR//nzb/9v67pAtiAgvydxBmwcuWz/329N/9v3Pj1/4qV
        b/+3dd79X1577X9uzqH/RUUHCLukb8Ld/8uWPP2/YsWH/3nZq/7b2BT89/NrBxsQHrbxv5lpLn6XrF75
        8X9b++X/vf0PwJpBOCZ81v+8vLNgAyxd9yMMwBZQbe13/peXHgAacue/n2/Hf2+P5v+5eTv/JycfARsA
        wvDAxBZQoeEz/js51f3PyjvwPy5x93+/8B3/8wtugQ1wcO2FeIGYgHJ16/qflrQR7IXgoKlgGm4zMQHl
        4tb+38u7F6zJK3gJ2BC4ASQFFLbUQ1JAYTOAqIAiJt3iDShiDMAbUMQYQK4aADryRigx6iTFAAAAAElF
        TkSuQmCC
</value>
  </data>
  <data name="btn_xsd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAl9JREFUOE+lk8lP
        U1EUxt8/pSs2bFhqopFnAlGG2MjQARAKWooQLW1pGdqSgihEKtDWiILWQKDQMGgUwZIaSMAGNy6NwwoW
        735+70BsF670Jr98dzjfueeel6dp/ztGZpZg5ohOLYqGJ1+L9o+/FPWPzv5V273jsi9D4QhAnhyQfUB9
        Irucf6RuQeEdlNok69xb5d4yWUTLvQfQQo9TDKBR7f0xKrXD4C2u3/Jsk7rG9QpZJgvkFZkvriDHoCw3
        t6nvqTSqDYw9zCP+NIfj4xXcdu+gpTnN8zmezZIk7Hej0AJjL7j4wNJoxBsGrHOdIWkkZ44wPnEId09W
        EjjsizxPkGkSK1QAdWbEqTGdPkQ4tI+Fhe+IJ77B48vD2bkHa+MampszUolSY2joDEPzDCe5WOXt5vvM
        G1LoH8xj+slXxOM/YGtIQtedqKrySwK9fA7nz1kZGynqgTQmJe8D33dy8hye3hyCA19QWtqE3WwIa5lR
        2GzbkuDXzxCUEYDFOQjNPTBFs9mYZzSb1czQ/BnO1oyoXu7DVCwIr28etbUbksBEGfeLK0jQOE1iZAJX
        9BGUlXWh3pbBteolVN5Iwe44kAR11r6zJ3SiuqUPWpv3EU2TvH1CGqPUCOcR6iAuXPTDUjOHkhIHLl8a
        FlXKxds7SFtRBYZpjEpjTKMyglQfKip7oV8NcN6FoWhEkijVyvMmYkOFzQPN0W0aw2RAGqMMr7xPGd3E
        DcO4Q3WSW4QVGFbu1THeUqig0XX6Sepd/K4cNzuGRC3t/aI1rQHR6w6faIWVN3PodT2FJP/6V/8Gt1lu
        mNDb/rgAAAAASUVORK5CYII=
</value>
  </data>
  <data name="btn_OK.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAXVJREFUOE9jZCAX
        MDH8Z2BnJk83IxfTf/M+qf8KNuz/STaBS4Llf/hayf+OLUKka5bVZ/5fcEzyf9xO1f+sPIykGWDuy/S/
        /qrM//xLxv8lTDlI0xxSwPS/9Y7i/5Irlv9NS8RQNXOKs/yXNGDFaiITM8P/5D62/013NP+XXrX+H7hW
        7T8zO5rT3WMY/+/8IvO/eRXjf0klhCQrN+P/1MV8/+tvGYA1J54y/C+oiSXUmVkY/i88bft/7yf///Of
        Sfy3Lef/z6bE+T9xkzhQsxlYc+p50/+aKSK4/a1tz/p/27uo/+teR/2f+tj0f+FVlf8Nt6zhmp3mKf1n
        BHoHb5xnzFH8v/BZ0P/JDzz/t9x2hGsOPKj7n1uejXCoC8gw/W+7ZomiOfSE4X/5EEHCmmFOs8wR/l9y
        1Qrs57CThv9N+hX+MzAScDqyv5g5GP8Hb1EHa3bapvWfXYyFeNthBkk68vx3A/pbzI2fdM0wQzikiQg0
        qGIAvnat2J8/+BIAAAAASUVORK5CYII=
</value>
  </data>
  <data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAZVJREFUOE+tk89K
        QkEUxieKKyat3foCYYHRJsQHMKQ/tMh94MYHcOEDtAmijRDRLqxlq4goEKpFpYuolIqbVoqmUS3KuN7T
        d24zl5uoQXThx8ycc75vzsxlhPjvzyUETYFVTdDhoKBjsIb5DGKc67nfMAr23IJqENX7BVWxrjCYPyLG
        OX83E3+foEsUNVBQl6h5DesHoIMcakZQ+6MTNxIZ17f4qQdl5G7ALmpZY5vMDUAMV7tl1bocG8Egvcbj
        1nFKII/aWWhsg3Wckdu878BzLEZms0lmq0X1SMSqyYNlaGyDfTiqM/I5mTtNo7dUitRnVKtUCYWsXAFs
        Oe/hgAXgWqJ7vfSeydjij2yWdJ/Pzl+xgfMONuSunNADAfosFm3xSzpNBY+HOKc4x3zFabCARRFwohSN
        kmmaZBoGVRIJK9ZOFrF5p8EQFmdyhxzGcjJJt+Ew8bwdFu8Aj9OAb3NC3i7vdgpOOsDxIzDWLla/YxwJ
        vtALubMy4pE73Aaj3cTKhB/MNFgCmyANFsEk0H4T/+VlfwGeAlL48G7OaQAAAABJRU5ErkJggg==
</value>
  </data>
  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAACHRkTgjUtK7QAAAACkU0qalVJT/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAikZF8rFiZv9wPDz/lVJT/3A8PP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAACYV1X/fkJC+cBuav+7YV7/uFdO6tpwb//EY2P/jUVAyG01Nv8AAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAA3IeG/8B1d//ch4b/iE1O8oNIS3+5bm3QxGNj/7FWV/+xVlf/AAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAPGpqxDTh4b/4I+N/3A8PPlwPDw8mldcXs1ubv+xVlf/v0U5EAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADdkI7/5aSm//CoqP+qa27/cDw83IdOTuXCbG3/sVZX/201
        Nv+HRkTgjUtK7QAAAACkU0qalVJT/wAAAAAAAAAA5qmpw9mNjvP1sbHn7amo/92Jhv/WfXf/wmxt/8By
        cv+9cnP/ikZF8rFiZv9wPDz/lVJT/3A8PP8AAAAAAAAAAAAAAAAAAAAA4qCj69ufnv/Qgn7/zn56/7lv
        cP+YV1X/fkJC+cBuav+7YV7/uFdO6tpwb//EY2P/jUVAyG01Nv8AAAAAAAAAAN2cm//ajYq86JiYEM5+
        ev+9cnP/3IeG/8B1d//ch4b/iE1O8oNIS3+5bm3QxGNj/7FWV/+xVlf/AAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAPGpqxDTh4b/4I+N/3A8PPlwPDw8mldcXs1ubv+xVlf/v0U5EAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAADdkI7/5aSm//CoqP+qa27/cDw83IdOTuXCbG3/sVZX/201Nv8AAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAA5qmpw9mNjvP1sbHn7amo/92Jhv/WfXf/wmxt/8Bycv+9cnP/AAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4qCj69ufnv/Qgn7/zn56/7lvcP8AAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN2cm//ajYq86JiYEM5+ev+9cnP/AAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAA//8AAMn/AADB/wAAAH8AAAB/AAAAfwAAABMAAAADAADAAAAAwAAAAP4AAAD+AAAA/gAAAP+D
        AAD/gwAA//8AAA==
</value>
  </data>
</root>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sam Safonov
Software Developer
Russian Federation Russian Federation
I have Master degree in Particle Physics. During my last several years I work as software developer.
 
Primary Interests
- c#, c++, php, java.
- scientific programming

| Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 11 Jan 2009
Article Copyright 2009 by Sam Safonov
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid