Supportnet Computer
Planet of Tech

Supportnet / Forum / WindowsXP

Kennt jemand einen Freeware Excel-to-HTML Konverter ?





Frage

Ich würde gerne xls-Files in html konvertieren. Das Programm sollte allerdings Freeware ein und möglichst im Command Line Interface laufen, um es in diverse Batch-Files einzubauen. Gibt es so etwas ? Ich hab schon daran gedacht, selbst eines zu programmieren, aber meine Programmierkünste sind nicht gerade die besten :-(

Antwort 1 von sTk

Hi!

Ist zwar nicht das gelbe vom Ei, aber Excel selbst kann seine Tabellen als HTML abspeichern!
Eine andere Lösung hab ich leider nicht parat!

Gruß, Steffen

Antwort 2 von Jonathan

Wenn Du die Seite dann wirklich online stellen willst, würde ich Dir gaaanz schwer davon abraten.

Hier mal als Beispiel der Quellcode den Excel gezaubert hat bei einer Tabelle mit 2 Spalten und einer Zeile:

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 10">
<link rel=File-List href="Mappe1-Dateien/filelist.xml">
<link rel=Edit-Time-Data href="Mappe1-Dateien/editdata.mso">
<link rel=OLE-Object-Data href="Mappe1-Dateien/oledata.mso">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Jonathan Ferger</o:Author>
<o:LastAuthor>Jonathan Ferger</o:LastAuthor>
<o:Created>2004-09-28T14:02:56Z</o:Created>
<o:LastSaved>2004-09-28T14:03:14Z</o:LastSaved>
<o:Version>10.2625</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:DownloadComponents/>
<o:LocationOfComponents HRef="file:///Y:\"/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\,";
mso-displayed-thousand-separator:"\.";}
@page
{margin:.98in .79in .98in .79in;
mso-header-margin:.49in;
mso-footer-margin:.49in;}
tr
{mso-height-source:auto;}
col
{mso-width-source:auto;}
br
{mso-data-placement:same-cell;}
.style0
{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:Standard;
mso-style-id:0;}
td
{mso-style-parent:style0;
padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
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;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
-->
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Tabelle1</x:Name>
<x:WorksheetOptions>
<x:DefaultColWidth>10</x:DefaultColWidth>
<x:Selected/>
<x:Panes>
<x:Pane>
<x:Number>3</x:Number>
<x:ActiveRow>9</x:ActiveRow>
<x:ActiveCol>2</x:ActiveCol>
</x:Pane>
</x:Panes>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>Tabelle2</x:Name>
<x:WorksheetOptions>
<x:DefaultColWidth>10</x:DefaultColWidth>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>Tabelle3</x:Name>
<x:WorksheetOptions>
<x:DefaultColWidth>10</x:DefaultColWidth>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:WindowHeight>7935</x:WindowHeight>
<x:WindowWidth>11595</x:WindowWidth>
<x:WindowTopX>240</x:WindowTopX>
<x:WindowTopY>15</x:WindowTopY>
<x:ProtectStructure>False</x:ProtectStructure>
<x:ProtectWindows>False</x:ProtectWindows>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>

<body link=blue vlink=purple>

<table x:str border=0 cellpadding=0 cellspacing=0 width=160 style='border-collapse:
collapse;table-layout:fixed;width:120pt'>
<col width=80 span=2 style='width:60pt'>
<tr height=17 style='height:12.75pt'>
<td height=17 width=80 style='height:12.75pt;width:60pt'>1. Spalte</td>
<td width=80 style='width:60pt' x:str="2.Spalte ">2.Spalte<span
style='mso-spacerun:yes'> </span></td>
</tr>
<![if supportMisalignedColumns]>
<tr height=0 style='display:none'>

<td width=80 style='width:60pt'></td>
<td width=80 style='width:60pt'></td>
</tr>
<![endif]>
</table>

</body>

</html>

Antwort 3 von Camaro

Nein, es würde lediglich als Info für ein firmeninternes Netz dienen. Es spielt also keine große Rolle, wie gut die Qualität ist, solange es lesbar und Grafiken erkennbar sind.
Wie gesagt: am idealsten wäre ein einfaches Programm für das CLI:
z.B. convert test.xls test.htm
-> fertig

Das wäre optimal !

Antwort 4 von Camaro

Hat keiner eine Idee oder einen hübschen Source-Code für mich ? ;-)

Antwort 5 von Camaro

Und wieder nach oben

Antwort 6 von marty

Wenn Qualität und sonstiges unwichtig sind, warum versuchst du nicht Antwort 2 ?


Man muss nicht alles wissen, aber sollte wissen wo es steht ...

Antwort 7 von Camaro

Das kann ich nicht, weil ich die Konvertierung von einem Batch-File aus starten will. Gerade hinsichtlich Automatisierung ist diese Lösung x-fach besser. Das Problem: ich hab keine Möglichkeit, mittels Batchfile mit Excel eine xls-to-htm Konvertierung durchzuführen. Oder gibts dafür eine Möglichkeit ?

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: