<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Excel Tabelle als Bild]]></title><description><![CDATA[<p>Hi,</p>
<p>Kann man mit irgendeinem Tool eine Tabelle in einem Excel Dokument zu einem Bild konvertieren? Ich weiß daß man die Tabelle in Excel kopieren und in Paint einfügen kann, aber das ist zu umständlich. Ich hätte dafür gerne ein Commandline tool oder gibt es eine einfach zu benutzende C Bibliothek für sowas? Ich möchte es in einer Stapelverarbeitung benutzen. Ich kenne mich mit Excel leider auch nicht aus, da ich es selbst noch nie benutzt habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/246965/excel-tabelle-als-bild</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 08:14:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/246965.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Aug 2009 11:56:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Excel Tabelle als Bild on Tue, 04 Aug 2009 11:56:21 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Kann man mit irgendeinem Tool eine Tabelle in einem Excel Dokument zu einem Bild konvertieren? Ich weiß daß man die Tabelle in Excel kopieren und in Paint einfügen kann, aber das ist zu umständlich. Ich hätte dafür gerne ein Commandline tool oder gibt es eine einfach zu benutzende C Bibliothek für sowas? Ich möchte es in einer Stapelverarbeitung benutzen. Ich kenne mich mit Excel leider auch nicht aus, da ich es selbst noch nie benutzt habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1755030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1755030</guid><dc:creator><![CDATA[Excelsior]]></dc:creator><pubDate>Tue, 04 Aug 2009 11:56:21 GMT</pubDate></item><item><title><![CDATA[Reply to Excel Tabelle als Bild on Wed, 05 Aug 2009 11:11:17 GMT]]></title><description><![CDATA[<p>Vielleicht hilft Dir dieses Excel VBA Makro weiter:</p>
<pre><code>Sub TestAufruf()
    Call SaveRangeAsPicture(Me.Range(&quot;A1:B4&quot;), &quot;t:\MyPic&quot;, &quot;gif&quot;)
End Sub

' Mit diesem Makro wird ein ausgewählter Excel Zellenbereich als Bild in eine Datei abgespeichert.
' Parameter
' oRngSource:   Der abzuspeichernde Zellenbereich als Range
' sFilename:    Der Dateiname wo abgespeichert werden soll, ohne Erweiterung und ohne Punkt.
' sExtension:   Die Dateierweiterung. Gültig sind gif und jpg, ev auch andere.
Public Sub SaveRangeAsPicture(oRngSource As Range, sFilename As String, sExtension As String)
    Dim bCleanUp As Boolean
    On Error GoTo errHandler

    ' Erstelle ein Shape mit der Range als Bildinhalt:
    Dim oShape As Shape
    Dim oWks As Worksheet
    Set oWks = oRngSource.Parent
    oRngSource.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
    oWks.Pictures.Paste
    Set oShape = oWks.Shapes(oWks.Shapes.Count)

    ' Erstelle nun einen Chart, mit dem wir Bilder speichern können:
    Dim oChart As Chart
    Dim oChartObject As ChartObject
    Set oChart = Application.Charts.Add
    oChart.Location Where:=xlLocationAsObject, Name:=oWks.Name
    Set oChart = Nothing
    Set oChartObject = oWks.ChartObjects(oWks.ChartObjects.Count)

    ' Kopiere nun das Bild aus dem Shape in den Chart und speichere den Chartinhalt als Bild ab:
    oChartObject.Width = oShape.Width
    oChartObject.Height = oShape.Height
    oShape.CopyPicture Appearance:=2, Format:=-4147
    oChartObject.Chart.Paste
    oChartObject.Chart.Export Filename:=sFilename &amp; &quot;.&quot; &amp; sExtension, FilterName:=sExtension, Interactive:=False

    ' Nun noch aufräumen:
cleanUp:
    bCleanUp = True
    oShape.Delete
    oChartObject.Delete
    If Not oChart Is Nothing Then oChart.Delete
    Exit Sub

    ' Der Error Handler:
errHandler:
    If Not bCleanUp Then MsgBox &quot;Fehler: &quot; &amp; Err.Description, vbCritical
    Err.Clear
    If Not bCleanUp Then
        Resume cleanUp:
    Else
        Resume Next
    End If
End Sub
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1755663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1755663</guid><dc:creator><![CDATA[Mukki]]></dc:creator><pubDate>Wed, 05 Aug 2009 11:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to Excel Tabelle als Bild on Wed, 05 Aug 2009 15:54:32 GMT]]></title><description><![CDATA[<p>danke, ich schaue es mal an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1755863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1755863</guid><dc:creator><![CDATA[Excelsior]]></dc:creator><pubDate>Wed, 05 Aug 2009 15:54:32 GMT</pubDate></item></channel></rss>