<?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[Komponente für Druckvorschau (war: Druckvorschau)]]></title><description><![CDATA[<p>Mit dem QuickReport kann man zwar eine Druckvorschau realisieren, aber ich drucke so:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
	//x und y repräsentieren Zentimeter, beginnend in der linken
	//oberen Ecke (für einen bestimmten Drucker)
	double x = (x - 0.6) * 2000 / 16.9; 
	double y = (y - 1.0) * 3000 / 25.3;
	string str = &quot;hallo&quot;;
	Printer()-&gt;BeginDoc();
	Printer()-&gt;Canvas-&gt;TextOut(x, y, str.c_str());
	Printer()-&gt;EndDoc();
}
//---------------------------------------------------------------------------
</code></pre>
<p>Wie kann man für sowas eine Druckvorschau erstellen? Bin nirgendwo fündig geworden.</p>
<p><strong>Edit:</strong><br />
Bitte aussagekräftige Überschriften wählen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96444/komponente-für-druckvorschau-war-druckvorschau</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 09:49:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96444.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Jan 2005 08:33:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Komponente für Druckvorschau (war: Druckvorschau) on Mon, 18 Jul 2005 13:47:00 GMT]]></title><description><![CDATA[<p>Mit dem QuickReport kann man zwar eine Druckvorschau realisieren, aber ich drucke so:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
	//x und y repräsentieren Zentimeter, beginnend in der linken
	//oberen Ecke (für einen bestimmten Drucker)
	double x = (x - 0.6) * 2000 / 16.9; 
	double y = (y - 1.0) * 3000 / 25.3;
	string str = &quot;hallo&quot;;
	Printer()-&gt;BeginDoc();
	Printer()-&gt;Canvas-&gt;TextOut(x, y, str.c_str());
	Printer()-&gt;EndDoc();
}
//---------------------------------------------------------------------------
</code></pre>
<p>Wie kann man für sowas eine Druckvorschau erstellen? Bin nirgendwo fündig geworden.</p>
<p><strong>Edit:</strong><br />
Bitte aussagekräftige Überschriften wählen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/684595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/684595</guid><dc:creator><![CDATA[Ingo]]></dc:creator><pubDate>Mon, 18 Jul 2005 13:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to Komponente für Druckvorschau (war: Druckvorschau) on Sun, 02 Jan 2005 09:29:18 GMT]]></title><description><![CDATA[<p>gegebenenfalls könntest du mittels der Funktin PrintTo() das zu Druckende auf eine TImage Komponente übertragen und diese dann Zoomen und weiteres machen. Is nur eine Idee, ob's klappt weiß ich nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/684617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/684617</guid><dc:creator><![CDATA[---]]></dc:creator><pubDate>Sun, 02 Jan 2005 09:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to Komponente für Druckvorschau (war: Druckvorschau) on Sun, 02 Jan 2005 09:59:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>dazu müsstest du dir deine eigentliche Zeichenfunktionen (Canvas-&gt;...) in ne Funktion packen. Der Funktion übergibst du dann als Parameter einen TCanvas. Du könntest die Funktion dann entweder mit:<br />
paintPrinting(Printer()-&gt;Canvas);<br />
oder mit<br />
paintPrinting(Form1-&gt;Canvas);<br />
aufrufen...</p>
<p>Grüße,<br />
Robert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/684624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/684624</guid><dc:creator><![CDATA[rowisoft]]></dc:creator><pubDate>Sun, 02 Jan 2005 09:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Komponente für Druckvorschau (war: Druckvorschau) on Fri, 15 Jul 2005 16:45:13 GMT]]></title><description><![CDATA[<p>Danke, aber gibt es dafür vielleicht eine Druckvorschau-Komponente a la Word?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/831897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/831897</guid><dc:creator><![CDATA[Ingo]]></dc:creator><pubDate>Fri, 15 Jul 2005 16:45:13 GMT</pubDate></item><item><title><![CDATA[Reply to Komponente für Druckvorschau (war: Druckvorschau) on Fri, 15 Jul 2005 18:52:56 GMT]]></title><description><![CDATA[<p>Ingo schrieb:</p>
<blockquote>
<p>Danke, aber gibt es dafür vielleicht eine Druckvorschau-Komponente a la Word?</p>
</blockquote>
<p>Musst Du mal googeln. Ich hab da schon welche gesehen, hab' mir aber die Namen nicht gemerkt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/831980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/831980</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Fri, 15 Jul 2005 18:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to Komponente für Druckvorschau (war: Druckvorschau) on Mon, 18 Jul 2005 10:47:55 GMT]]></title><description><![CDATA[<p>Schau mal auf der Delphi Super Page <a href="http://delphi.icm.edu.pl/" rel="nofollow">http://delphi.icm.edu.pl/</a> nach. Dort gibt es tausende von Komponenten, such mal nach &quot;Preview&quot; mittels des Eintrags &quot;Search DSP (US)&quot;.<br />
Ich selber habe den TPagePrinter benutzt und bin damit sehr zufrieden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/833398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/833398</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Mon, 18 Jul 2005 10:47:55 GMT</pubDate></item></channel></rss>