Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPYing numeric data to an XLS
Message
 
À
22/07/2009 17:44:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01413826
Message ID:
01413917
Vues:
99
Hi Yossi,

>I have a table with a character field. I COPY it to an XLS. In the case that the data in the field is numeric, I want the data to be numeric in the XLS file.

if you don't have to support Excel 95 and Excel 97, you can create an XML file in XMLSS format. The format is pretty simple:
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
  <Worksheet ss:Name="Sheet1">
    <Table>
      <Column ss:Width="200"/>
      <Row>
        <Cell><Data ss:Type="Number">123.456</Data></Cell>
      </Row>
    </Table>
  </Worksheet>
</Workbook>
At Southwest Fox I'll have a session that covers this format in great detail.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform