diff --git a/theme/views-data-export-doc-footer.tpl.php b/theme/views-data-export-doc-footer.tpl.php
index d75c23d..9a4aff7 100644
--- a/theme/views-data-export-doc-footer.tpl.php
+++ b/theme/views-data-export-doc-footer.tpl.php
@@ -1,4 +1,5 @@
-      </tbody>
-    </table>
+        </tbody>
+      </table>
+    </div>
   </body>
 </html>
\ No newline at end of file
diff --git a/theme/views-data-export-doc-header.tpl.php b/theme/views-data-export-doc-header.tpl.php
index 86b824c..b1bc8ba 100644
--- a/theme/views-data-export-doc-header.tpl.php
+++ b/theme/views-data-export-doc-header.tpl.php
@@ -1,8 +1,44 @@
-<html>
+<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
   <head>
+    <!--[if gte mso 9]>
+      <xml>
+        <w:WordDocument>
+        <w:View>Print</w:View>
+        <w:Zoom>100</w:Zoom>
+        <w:DoNotOptimizeForBrowser/>
+        </w:WordDocument>
+      </xml>
+    <![endif]-->
+    <style>
+      v\:* {behavior:url(#default#VML);}
+      o\:* {behavior:url(#default#VML);}
+      w\:* {behavior:url(#default#VML);}
+      .shape {behavior:url(#default#VML);}
+    </style>
+    <style>
+      @page
+      {
+        size: 21cm 29.7cm;  /* A4 */
+        margin: 1in 1in 1in 1in; /* 1 inch margins */
+        mso-page-orientation: portrait;	 /* Portrait page orientation */
+      }
+      @page WordSection1
+      {
+        mso-title-page: no;
+        mso-paper-source: 0;
+        mso-header-margin: 0;
+        mso-footer-margin: 0;
+      }
+      div.WordSection1 {
+        page:WordSection1;
+        mso-header-margin: 0;
+        mso-footer-margin: 0;
+      }
+    </style>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   </head>
   <body>
-    <table>
-    <?php print $header_row; ?>
-    <tbody>
\ No newline at end of file
+    <div class="WordSection1">
+      <table class="main-table">
+        <?php print $header_row; ?>
+        <tbody>
\ No newline at end of file
