<?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[[Borland C++] Problem mit der ExcelApplication - Komponente]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe schon gesehen, dass einige auch Probleme mit dieser Komponente gehabt haben. Nun komme ich auch dazu!</p>
<p>Ich habe folgendes Problem:</p>
<p>Ich möchte eine ExcelApplication starten, diese sichtbar machen, und dann in verschiedene Zellen Einträge vornehmen. Ich habe es schon hinbekommen, dass Excel mit einem neuen Workbook startet, aber ich weiß nicht, wie ich in die Zelle etwas rein bekomme!<br />
Hier mein Code</p>
<pre><code>#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
#include &lt;ComObj.hpp&gt;
#include &lt;utilcls.h&gt;

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link &quot;Excel_2K_SRVR&quot;
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
   : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
   exit(1);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
   ExcelApplication1-&gt;Connect();
   ExcelApplication1-&gt;set_Visible(true,true);
   ExcelApplication1-&gt;Workbooks-&gt;Add();

}
</code></pre>
<p>Ich habe schon in einigen Bsp. gesehen, dass eine Anweisung zum schreiben so lauten könnte.</p>
<p>ExcelApplication1-&gt;set_Item(????);</p>
<p>In dieses Forum hat auch schon einer diese Frage gestellt, aber leider keine Antowort bekommen. Wie mache ich dass jetzt mit diesen tagVARIANT Variablen? Wie deklariere ich diese und wie muss man diese in der obigen Anweisung benutzen?</p>
<p>Vielen Dank für die Antworten!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/115780/borland-c-problem-mit-der-excelapplication-komponente</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 11:25:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/115780.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jul 2005 06:27:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 06:27:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe schon gesehen, dass einige auch Probleme mit dieser Komponente gehabt haben. Nun komme ich auch dazu!</p>
<p>Ich habe folgendes Problem:</p>
<p>Ich möchte eine ExcelApplication starten, diese sichtbar machen, und dann in verschiedene Zellen Einträge vornehmen. Ich habe es schon hinbekommen, dass Excel mit einem neuen Workbook startet, aber ich weiß nicht, wie ich in die Zelle etwas rein bekomme!<br />
Hier mein Code</p>
<pre><code>#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
#include &lt;ComObj.hpp&gt;
#include &lt;utilcls.h&gt;

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link &quot;Excel_2K_SRVR&quot;
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
   : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
   exit(1);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
   ExcelApplication1-&gt;Connect();
   ExcelApplication1-&gt;set_Visible(true,true);
   ExcelApplication1-&gt;Workbooks-&gt;Add();

}
</code></pre>
<p>Ich habe schon in einigen Bsp. gesehen, dass eine Anweisung zum schreiben so lauten könnte.</p>
<p>ExcelApplication1-&gt;set_Item(????);</p>
<p>In dieses Forum hat auch schon einer diese Frage gestellt, aber leider keine Antowort bekommen. Wie mache ich dass jetzt mit diesen tagVARIANT Variablen? Wie deklariere ich diese und wie muss man diese in der obigen Anweisung benutzen?</p>
<p>Vielen Dank für die Antworten!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834029</guid><dc:creator><![CDATA[skluge]]></dc:creator><pubDate>Tue, 19 Jul 2005 06:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 06:36:47 GMT]]></title><description><![CDATA[<p>wenn keiner ne Antwort weiss, mal unter <a href="http://www.google.de" rel="nofollow">www.google.de</a> nachschauen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>vielleicht hilft ja das weiter: <a href="http://www.aspforum.de/topic.asp?ARCHIVE=true&amp;TOPIC_ID=23167" rel="nofollow">http://www.aspforum.de/topic.asp?ARCHIVE=true&amp;TOPIC_ID=23167</a></p>
<p>mfg<br />
BigNeal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834033</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 19 Jul 2005 06:36:47 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 06:52:20 GMT]]></title><description><![CDATA[<p>Das Problem ist jetzt schon seit zwei Tagen, dass ich nix richtiges für dieses Problem finde. Ich möchte eigentlich nur wissen, wie man mit dieser Anweisung<br />
arbeitet:</p>
<p>ExcelApplication1-&gt;set_Item();</p>
<p>Ich verstehe das mit diesen tagVARIANT nicht! Oder meinst du, ich sollte das Problem vielleicht komplett anderst angehen?</p>
<p>Ich hab schon viele Programmbsp. gesehen, aber mit dem Borland Builder kann man manchmal verzweifeln, wenn man etwas zu einer Komponente sucht!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834035</guid><dc:creator><![CDATA[skluge]]></dc:creator><pubDate>Tue, 19 Jul 2005 06:52:20 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 06:57:52 GMT]]></title><description><![CDATA[<p>ich kenne die komponente nicht.<br />
hast du keine dokumentation?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834041</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 19 Jul 2005 06:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 07:01:08 GMT]]></title><description><![CDATA[<p>da:<br />
<a href="http://student.pb.bielsko.pl/~wchmiel/porady.html" rel="nofollow">http://student.pb.bielsko.pl/~wchmiel/porady.html</a></p>
<p>unter dem ersten Bild. hoffe das hilft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834046</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 19 Jul 2005 07:01:08 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 07:05:39 GMT]]></title><description><![CDATA[<p>Leider nicht.<br />
In der Hilfe von Borland findet man auch nix! Im Netz findet man viel aber nichts zu diesem konkreten Problem.</p>
<p>Ich will ja nur Daten in eine Excel - Datei schreiben lassen. Dabei soll dass C++ Programm aus einer existierenden Datei (z.B. .csv ) sich die daten rausholen und dann in eine formatierte Form in die Excel Datei reinschreiben.</p>
<p>Mit anderen Komponenten ist das mit dem Einfügen viel besser gelöst. Z.B. beim StringGrid: StringGrid[0][4] = &quot;Test&quot;; oder so;</p>
<p>Wäre schön, wenn das für die ExcelApplication auch klappen würde aber naja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834050</guid><dc:creator><![CDATA[skluge]]></dc:creator><pubDate>Tue, 19 Jul 2005 07:05:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 07:10:56 GMT]]></title><description><![CDATA[<p>schau meinen Link an. dort ist es zwar über ExcelWorksheet1-&gt;Cells-&gt;set_Item<br />
aber du siehst trotzdem wie du mit TVariant umgehen musst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834052</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 19 Jul 2005 07:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 07:16:39 GMT]]></title><description><![CDATA[<p>hab mich vertan. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/834058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834058</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Tue, 19 Jul 2005 07:16:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Borland C++] Problem mit der ExcelApplication - Komponente on Tue, 19 Jul 2005 07:26:55 GMT]]></title><description><![CDATA[<p>Merci <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Endlich hats geklappt!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834071</guid><dc:creator><![CDATA[skluge]]></dc:creator><pubDate>Tue, 19 Jul 2005 07:26:55 GMT</pubDate></item></channel></rss>