<?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[Drucken in einem Dialog]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich möchte aus einer Dialoganwendung drucken. Ich finde oder verstehe davon überhaupt nichts. Es sollen verschiedene Texte an bestimmten Positionen gedruckt werden. Ich bekomm es aber nicht in meine Anwendung integriert. Wer kann mir helfen so etwas zu verwirklichen? Bin schon fasst verzweifelt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Hier die Quellcodes wo ich verzweifelt versuche zu intergrieren: <a href="http://www.codeproject.com/printing/printlib.asp" rel="nofollow">http://www.codeproject.com/printing/printlib.asp</a> <a href="http://www.codeproject.com/printing/printlongtext.asp" rel="nofollow">http://www.codeproject.com/printing/printlongtext.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/44118/drucken-in-einem-dialog</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 06:34:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/44118.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Jul 2003 10:53:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 10:53:18 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich möchte aus einer Dialoganwendung drucken. Ich finde oder verstehe davon überhaupt nichts. Es sollen verschiedene Texte an bestimmten Positionen gedruckt werden. Ich bekomm es aber nicht in meine Anwendung integriert. Wer kann mir helfen so etwas zu verwirklichen? Bin schon fasst verzweifelt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Hier die Quellcodes wo ich verzweifelt versuche zu intergrieren: <a href="http://www.codeproject.com/printing/printlib.asp" rel="nofollow">http://www.codeproject.com/printing/printlib.asp</a> <a href="http://www.codeproject.com/printing/printlongtext.asp" rel="nofollow">http://www.codeproject.com/printing/printlongtext.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/319455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319455</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Mon, 28 Jul 2003 10:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 12:02:30 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CPrintDialog dlgPrint(FALSE,PD_ALLPAGES,this);

	if (dlgPrint.DoModal()==IDOK)
	{
		CDC dcPrint;
		dcPrint.Attach(dlgPrint.GetPrinterDC());
		dcPrint.SetMapMode(MM_LOMETRIC);

		DOCINFO myPrintJob;
		myPrintJob.cbSize = sizeof(myPrintJob);
		myPrintJob.lpszDocName = &quot;Druckauftrag Titel&quot;;
		myPrintJob.lpszOutput = NULL;
		myPrintJob.lpszDatatype = NULL;
		myPrintJob.fwType = NULL;

		if (dcPrint.StartDoc(&amp;myPrintJob)&gt;=0)
		{
			dcPrint.StartPage();
			dcPrint.TextOut(200,-200,&quot;Hallo&quot;);  //Achtung: Negativwerte (kein Ahnung warum)
			dcPrint.EndPage();
			dcPrint.EndDoc();
		}
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/319500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319500</guid><dc:creator><![CDATA[newvet]]></dc:creator><pubDate>Mon, 28 Jul 2003 12:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 13:01:43 GMT]]></title><description><![CDATA[<p>Danke! <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="🙂"
    /> Endlich aus jeder beliebigen Anwendung drucken...</p>
<p>Wie kann man aber da einen Zeilenumbruch/Seitenumbruch realisieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319563</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Mon, 28 Jul 2003 13:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 13:06:13 GMT]]></title><description><![CDATA[<p>Du holst dir die Höhe von dem Text und verschiebst den Offset nach links unter dem Text der vorigen Zeile. Oder du nimmst einfach DrawText.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319571</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Mon, 28 Jul 2003 13:06:13 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 13:10:08 GMT]]></title><description><![CDATA[<p>Seitenumbruch: StartPage() / EndPage()</p>
<p>Zeilenumbruch musste gucken wie lang die Zeile ist welche du ausgeben willst und wenn sie zu lang ist halt aufteilen. Um herauszufinden wie breit ein bestimmter Texabschnitt ist hat CDC irgendeine Methode, die weis ich jetzt aber nicht auswending.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319573</guid><dc:creator><![CDATA[newvet]]></dc:creator><pubDate>Mon, 28 Jul 2003 13:10:08 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 13:21:58 GMT]]></title><description><![CDATA[<p>Zeilenlänge berechnen mit</p>
<pre><code class="language-cpp">CSize GetOutputTextExtent( const CString&amp; str ) const;
</code></pre>
<p>aber dann weis ich erst wie lang der Text sein würde. Trennen aber wie?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319579</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Mon, 28 Jul 2003 13:21:58 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 14:23:21 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">RECT rec;
rec.left = 200;
rec.right = 400;
rec.bottom = -400;
rec.top = -200;
dcPrint.DrawText(&quot;Hallo das ist ein Test Text.&quot;,&amp;rec,DT_WORDBREAK);
</code></pre>
<p>Kannte ich noch gar nicht, funktioniert aber ganz gut, nur wie bekomme ich raus wieviel text er nun wirklich gezeichnet hat (Wenn das rechteck von der höhe her nicht mehr ausreicht verschluckt er ja die hälfte)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319635</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319635</guid><dc:creator><![CDATA[newvet]]></dc:creator><pubDate>Mon, 28 Jul 2003 14:23:21 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Mon, 28 Jul 2003 14:31:14 GMT]]></title><description><![CDATA[<p>Geil endlich Zeilenumbruch! Aber du hast Recht, wann ist die Seite zu Ende?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319640</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319640</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Mon, 28 Jul 2003 14:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken in einem Dialog on Tue, 29 Jul 2003 04:43:30 GMT]]></title><description><![CDATA[<p>Wann die Seite zu ende ist muss man sich berechnen.<br />
Zuerst die Druckdaten des Druckers (Treiber) auslesen welche Auflösung u.s.w. eingestellt ist.<br />
Da bekommt man dann die Max. Druckbaren Punkte.<br />
Dann schaut man einfach ob aktuelle Ausgabe größer als Max.<br />
Wenn ja dann neue Seite<br />
Ohne Berechnung geht es nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319929</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Tue, 29 Jul 2003 04:43:30 GMT</pubDate></item></channel></rss>