Juan
From: guaternake@hotmail.com
To: users+help@es.libreoffice.org
Subject: Problema al abrir archivo xls con código html
Date: Tue, 22 May 2012 09:42:50 +0000
Buenos días!
Mi problema es el siguiente:
A través de una aplicación web, genero un archivo de exportación a archivo de hoja de cálculo 
(.xls), que en realidad contiene código html.
Aunque puedo abrir este archivo (presentar el contenido del mismo como una tabla de datos) con 
otras aplicaciones como MSExcel u OpenOffice,
con LibreOffice ocurre que intenta importar este fichero línea a línea del código html, en lugar en 
interpretarlo y mostrarlo directamente.
Adjunto el archivo, y el código del archivo que me da problemas:
<html xmlns:x="urn:schemas-microsoft-com:office:excel" 
xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
      <meta name="ProgId content=Excel.Sheet"></meta><style>
            table
            {mso-displayed-decimal-separator:"\.";
            mso-displayed-thousand-separator:"\,";}
            @page
                    {margin:1.0in .75in 1.0in .75in;
                    mso-header-margin:.5in;
                    mso-footer-margin:.5in;}
            tr
                    {mso-height-source:auto;}
            col
                    {mso-width-source:auto;}
            br
                    {mso-data-placement:same-cell;}
            .basestyle
                    {mso-number-format:General;
                    text-align:general;
                    vertical-align:bottom;
                    white-space:nowrap;
                    mso-rotate:0;
                    mso-background-source:auto;
                    mso-pattern:auto;
                    color:windowtext;
                    font-size:10.0pt;
                    font-weight:400;
                    font-style:normal;
                    text-decoration:none;
                    font-family:Arial;
                    mso-generic-font-family:auto;
                    mso-font-charset:0;
                    border:none;
                    mso-protection:locked visible;
                    mso-style-name:Normal;
                    mso-style-id:0;}
              .col-heading
                    {mso-style-parent:basestyle;
                    font-weight:700;
                    font-family:"Arial Unicode MS";
                    mso-generic-font-family:auto;
                    mso-font-charset:0;
                    text-align:left;
                    vertical-align:middle;
                    border:.5pt solid black;
                    mso-pattern:auto none;}
              .row-heading
                    {mso-style-parent:basestyle;
                    font-weight:700;
                    font-family:"Arial Unicode MS";
                    mso-generic-font-family:auto;
                    mso-font-charset:0;
                    text-align:left;
                    vertical-align:top;
                    border-top:.5pt solid black;
                    border-right:.5pt solid black;
                    border-bottom:none;
                    border-left:.5pt solid black;
                    mso-pattern:auto none;}
              .dataitem
                    {mso-style-parent:basestyle;
                    font-family:"Arial Unicode MS";
                    mso-generic-font-family:auto;
                    mso-font-charset:0;
                    
                    
                    text-align:right;
                    vertical-align:top;
                    border:.5pt solid black;
                    background:white;
                    mso-pattern:auto none;}
            </style></head>
   <body>
      <table border="1">
         <tr>
            <th text-align="left" vertical-align="top" nowrap="nowrap" bgcolor="#FFFFFF" 
colspan="2" rowspan="1"> </th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="5" rowspan="1" bgcolor="#F0F0F0">Medidas</th>
         </tr>
         <tr>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Año-Mes</th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Mapa Sanitario</th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Altas</th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Duración P. Cerrados</th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Duración Media</th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Bajas Nuevas</th>
            <th class="col-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#C0C0C0">Aseg. Activos</th>
         </tr>
         <tr>
            <th class="row-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#F0F0F0">2011</th>
            <th class="row-heading" text-align="left" vertical-align="top" nowrap="nowrap" 
colspan="1" rowspan="1" bgcolor="#F0F0F0">Total</th>
            <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF" class="dataitem" 
style="mso-number-format:\#\#0.###" x:num="15027.0">15.027</td>
            <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF" class="dataitem" 
style="mso-number-format:\#\#0.###" x:num="645440.0">645.440</td>
            <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF" class="dataitem" 
style="mso-number-format:\#\,\#\#0" x:num="42.952019697877155">42,95</td>
            <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF" class="dataitem" 
style="mso-number-format:\#\#0.###" x:num="15625.0">15.625</td>
            <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF" class="dataitem" 
style="mso-number-format:\#\#0.###" x:num="497047.6666666665">497.048</td>
         </tr>
      </table>
   </body>
Gracias de antemano!
 Juan                                                                             
-- 
Unsubscribe instructions: E-mail to users+help@es.libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/es/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
- [es-users] FW: Problema al abrir archivo xls con código html · juan sancho gonzález
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.