<?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[Variable Datei mittels OLE-Excel öffnen?]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich versuche z.Zt. eine Vorhandene Excel-Datei über die OLE-Schnittstelle in Excel zu öffnen. Das mache ich wie folgt:</p>
<pre><code>CExcel::Excel_oeffnen()
	{
		m_vExcel = CreateOleObject(&quot;Excel.Application&quot;);
		m_vExcel.OlePropertySet(&quot;Visible&quot;,sichtbar);  //öffnet Excel sichtbar/-unsichtbar
		m_vWorkbooks_00 = m_vExcel.OlePropertyGet(&quot;Workbooks&quot;).OlePropertyGet(&quot;Open&quot;,&quot;C:\\Test.xls&quot;);
	};
</code></pre>
<p>Das funktioniert auch!<br />
Jetzt möchte ich aber gern die Datei mittels OpenDialog übergeben. Wenn ich an Stelle des Pfades eine Variable einsetze, bekomme ich folgende Fehlermeldung:</p>
<blockquote>
<p>...Exception der Klasse EOleSysError mit der Meldung 'Falscher Variablentyp' aufgetreten.</p>
</blockquote>
<p>Ich habe die Variable schon als AnsiString, Variant, String deklariert, aber ohne Erfolg!</p>
<p>Wie kann man den Fehler beheben???</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/146677/variable-datei-mittels-ole-excel-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 05 Aug 2026 21:53:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/146677.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 May 2006 01:06:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Variable Datei mittels OLE-Excel öffnen? on Wed, 10 May 2006 01:06:25 GMT]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich versuche z.Zt. eine Vorhandene Excel-Datei über die OLE-Schnittstelle in Excel zu öffnen. Das mache ich wie folgt:</p>
<pre><code>CExcel::Excel_oeffnen()
	{
		m_vExcel = CreateOleObject(&quot;Excel.Application&quot;);
		m_vExcel.OlePropertySet(&quot;Visible&quot;,sichtbar);  //öffnet Excel sichtbar/-unsichtbar
		m_vWorkbooks_00 = m_vExcel.OlePropertyGet(&quot;Workbooks&quot;).OlePropertyGet(&quot;Open&quot;,&quot;C:\\Test.xls&quot;);
	};
</code></pre>
<p>Das funktioniert auch!<br />
Jetzt möchte ich aber gern die Datei mittels OpenDialog übergeben. Wenn ich an Stelle des Pfades eine Variable einsetze, bekomme ich folgende Fehlermeldung:</p>
<blockquote>
<p>...Exception der Klasse EOleSysError mit der Meldung 'Falscher Variablentyp' aufgetreten.</p>
</blockquote>
<p>Ich habe die Variable schon als AnsiString, Variant, String deklariert, aber ohne Erfolg!</p>
<p>Wie kann man den Fehler beheben???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054533</guid><dc:creator><![CDATA[torsten_156]]></dc:creator><pubDate>Wed, 10 May 2006 01:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to Variable Datei mittels OLE-Excel öffnen? on Wed, 10 May 2006 05:04:59 GMT]]></title><description><![CDATA[<p>versuchs mal so:</p>
<pre><code class="language-cpp">m_vWorkbooks_00 = m_vExcel.OlePropertyGet(&quot;Workbooks&quot;).OlePropertyGet(&quot;Open&quot;,OpenDialog1-&gt;FileName.c_str());
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1054549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054549</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 10 May 2006 05:04:59 GMT</pubDate></item><item><title><![CDATA[Reply to Variable Datei mittels OLE-Excel öffnen? on Fri, 12 May 2006 00:12:06 GMT]]></title><description><![CDATA[<p>DANKE <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /><br />
Hat funktioniert!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1056074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1056074</guid><dc:creator><![CDATA[torsten_156]]></dc:creator><pubDate>Fri, 12 May 2006 00:12:06 GMT</pubDate></item></channel></rss>