<?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[Dynamisch ein Bild in QRImage laden!]]></title><description><![CDATA[<p>Ich habe einen Quickreport erstellt. Darin sollen Datensätze aus einer Datenbank dargestellt werden. Ein Feld der Datenbank beinhaltet für jeden Datensatz einen Pfad zu einer Screenshot-Datei. Jetzt möchte ich diesen Pfad abgreifen und den Screenshot anhand dessen dynamisch für jeden Datensatz laden und in einem QRImage darstellen. Gibt es da eine Lösung?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174508/dynamisch-ein-bild-in-qrimage-laden</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 21:04:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174508.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Feb 2007 07:39:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Wed, 28 Feb 2007 07:39:08 GMT]]></title><description><![CDATA[<p>Ich habe einen Quickreport erstellt. Darin sollen Datensätze aus einer Datenbank dargestellt werden. Ein Feld der Datenbank beinhaltet für jeden Datensatz einen Pfad zu einer Screenshot-Datei. Jetzt möchte ich diesen Pfad abgreifen und den Screenshot anhand dessen dynamisch für jeden Datensatz laden und in einem QRImage darstellen. Gibt es da eine Lösung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1236576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1236576</guid><dc:creator><![CDATA[Linde]]></dc:creator><pubDate>Wed, 28 Feb 2007 07:39:08 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Wed, 28 Feb 2007 16:03:37 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>moeglicherweise so:</p>
<p>QRImage1-&gt;Picture-&gt;LoadFromFile (aBild);</p>
<p>Mfg<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1236882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1236882</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Wed, 28 Feb 2007 16:03:37 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Wed, 28 Feb 2007 16:09:41 GMT]]></title><description><![CDATA[<p>Und, wenn ich mich richtig erinnere, kannst Du dafür im QR das Ereignis OnNeedData verwenden, um jeweils das entsprechende Bild zu laden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1236891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1236891</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 28 Feb 2007 16:09:41 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 08:24:13 GMT]]></title><description><![CDATA[<p>Laden des Bildes aus einem Pfad ist klar, aber das Ereignis OnNeedData wird irgendwie nicht ausgeführt, wenn ich einen neuen Datensatz lade. Dadurch bekomme ich keinen aktuellen Pfad, den ich an das QRImage weiterleiten kann...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237222</guid><dc:creator><![CDATA[CHLINDE]]></dc:creator><pubDate>Thu, 01 Mar 2007 08:24:13 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 08:58:46 GMT]]></title><description><![CDATA[<p>Ja, Du hast recht. OnNeedData ist für DataSet-freie Reports...</p>
<p>Das QRImage liegt doch auf einem QR-Band. Dort gibt es das Ereignis BeforePrint. Dort kannst Du den Pfad aus dem DataSet auslesen und das Bild Laden. Dieses Ereignis wird für jeden zu druckenden Datensatz aufgerufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237237</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 01 Mar 2007 08:58:46 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 09:04:47 GMT]]></title><description><![CDATA[<p>Hey super!<br />
Genau das wollte ich! Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237241</guid><dc:creator><![CDATA[CHLINDE]]></dc:creator><pubDate>Thu, 01 Mar 2007 09:04:47 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 10:07:18 GMT]]></title><description><![CDATA[<p>Ich möchte jetzt den Fall absichern, dass die Screenshot-Datei vorhanden ist. Ist dies nicht der Fall, soll das QRImage ausgeblendet werden. Leider funktioniert Visible = false nicht, selbst, wenn ich es zur Entwurfszeit false setze. Auch Enabled = false geht nicht, so wie es beispielsweise bei einem QRLabel funktioniert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237279</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237279</guid><dc:creator><![CDATA[CHLINDE]]></dc:creator><pubDate>Thu, 01 Mar 2007 10:07:18 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 10:25:35 GMT]]></title><description><![CDATA[<p>Keine Ahnung... Notfalls würde ich Stretch auf true setzen und eine 1 x 1 Pixel große, weisse 'Defaultgrafik' laden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237306</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 01 Mar 2007 10:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 10:59:20 GMT]]></title><description><![CDATA[<p>Ich muss das Ganze nochmal ein wenig ergänzen:</p>
<p>Für die gewünschte Funktion nutze ich beide Funktionen des Parent-Bandes: AfterPrint und BeforePrint.</p>
<pre><code class="language-cpp">void __fastcall TForm_ErgebnisReport::QRBand1AfterPrint(TQRCustomBand *Sender, bool BandPrinted)
{
	try
	{
		AnsiString ASScreenshotPfad = DM_Daten-&gt;AS_InstallDir + &quot;Daten\\Screenshots\\&quot; + Form_ErgebnisReport-&gt;QRDBText_DetailScreenshotFile-&gt;DataSet-&gt;FieldByName(DM_Daten-&gt;AS_ErgebnisseScreenshotFile)-&gt;AsString;
		if (FileExists(ASScreenshotPfad))
		{
			Form_ErgebnisReport-&gt;QRImage_Screenshot-&gt;Picture-&gt;Bitmap-&gt;LoadFromFile(ASScreenshotPfad);
		}
	}
	catch(...)
	{
	}
}
</code></pre>
<pre><code class="language-cpp">void __fastcall TForm_ErgebnisReport::QRBand1BeforePrint(TQRCustomBand *Sender, bool &amp;PrintBand)
{
	try
	{
		AnsiString ASScreenshotPfad = DM_Daten-&gt;AS_InstallDir + &quot;Daten\\Screenshots\\&quot; + Form_ErgebnisReport-&gt;QRDBText_DetailScreenshotFile-&gt;DataSet-&gt;FieldByName(DM_Daten-&gt;AS_ErgebnisseScreenshotFile)-&gt;AsString;
		if (FileExists(ASScreenshotPfad))
		{
			Form_ErgebnisReport-&gt;QRLabel_ScreenshotNichtVorhanden-&gt;Enabled = false;
		}
		else
		{
			Form_ErgebnisReport-&gt;QRLabel_ScreenshotNichtVorhanden-&gt;Enabled = true;
		}
	}
	catch(...)
	{
	}
}
</code></pre>
<p>Dadurch kann ich im Fall einer nicht vorhanden Screenshot-Datei ein QRLabel anzeigen, das anzeigt, dass die Datei nicht vorhanden ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237331</guid><dc:creator><![CDATA[CHLINDE]]></dc:creator><pubDate>Thu, 01 Mar 2007 10:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamisch ein Bild in QRImage laden! on Thu, 01 Mar 2007 16:10:22 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>also es sollte eigentlich so gehen</p>
<pre><code class="language-cpp">QRImage1-&gt;Enabled = false/true;
</code></pre>
<p>Was spricht der Debugger ?</p>
<p>Mfg<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237599</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Thu, 01 Mar 2007 16:10:22 GMT</pubDate></item></channel></rss>