<?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 (Querformat)]]></title><description><![CDATA[<p>Ich habe die Druckvorschau Print PVL. In dieser Vorschau kann man mit</p>
<pre><code class="language-cpp">pDevMode-&gt;dmOrientation=DMORIENT_LANDSCAPE;
</code></pre>
<p>Die Ausrichtung des Blattes auf Querformat ändern.</p>
<p>Ich habe nun aber das Problem, dass wenn ich aus meine CDC-Objekt (Drucker) das Selbe ausdrucken möchte, es natürlich nicht querformat ist! Wie kann ich die Seite auf Querformat in meinem CDC-Objekt ändern?</p>
<p>Ich habe mir überlegt es wie folgt zu machen:</p>
<pre><code class="language-cpp">DEVMODEA devmodea;
devmodea-&gt;dmOrientation=DMORIENT_LANDSCAPE;
</code></pre>
<p>Aber nun muss ich wohl die Variable devmodea nicht dem CDC-Objekt übergeben...<br />
kann mir da jemand helfen?</p>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177601/drucken-querformat</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 08:45:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177601.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Apr 2007 08:22:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drucken (Querformat) on Mon, 02 Apr 2007 08:22:18 GMT]]></title><description><![CDATA[<p>Ich habe die Druckvorschau Print PVL. In dieser Vorschau kann man mit</p>
<pre><code class="language-cpp">pDevMode-&gt;dmOrientation=DMORIENT_LANDSCAPE;
</code></pre>
<p>Die Ausrichtung des Blattes auf Querformat ändern.</p>
<p>Ich habe nun aber das Problem, dass wenn ich aus meine CDC-Objekt (Drucker) das Selbe ausdrucken möchte, es natürlich nicht querformat ist! Wie kann ich die Seite auf Querformat in meinem CDC-Objekt ändern?</p>
<p>Ich habe mir überlegt es wie folgt zu machen:</p>
<pre><code class="language-cpp">DEVMODEA devmodea;
devmodea-&gt;dmOrientation=DMORIENT_LANDSCAPE;
</code></pre>
<p>Aber nun muss ich wohl die Variable devmodea nicht dem CDC-Objekt übergeben...<br />
kann mir da jemand helfen?</p>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1257763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1257763</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Mon, 02 Apr 2007 08:22:18 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken (Querformat) on Mon, 02 Apr 2007 10:56:36 GMT]]></title><description><![CDATA[<p>Nein! Diese Daten werden aus dem DEVMODE bei Erzeugung des CD's übernommen oder wenn ResetDC durchgeführt wird.</p>
<p>Ich vermute einfach das Du die DEVMODE Daten zu spät setzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1257834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1257834</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 02 Apr 2007 10:56:36 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken (Querformat) on Mon, 02 Apr 2007 11:54:25 GMT]]></title><description><![CDATA[<p>Dies funktioniert bei mir jedoch irgendwie nicht!</p>
<p>Hier der Codeausschnitt:</p>
<pre><code class="language-cpp">DEVMODEA devmodea;
devmodea.dmOrientation=DMORIENT_LANDSCAPE;
CPrintDialog dlgPrint(FALSE,PD_ALLPAGES,this); 

if (dlgPrint.DoModal()==IDOK) 
{ 		

	CDC hPrinter; 

	hPrinter.Attach(dlgPrint.GetPrinterDC()); 
	DOCINFO myPrintJob; 
	myPrintJob.cbSize = sizeof(myPrintJob); 
	myPrintJob.lpszDocName = &quot;QPM-StagePlan&quot;; 
	myPrintJob.lpszOutput = NULL; 
	myPrintJob.lpszDatatype = NULL; 
	myPrintJob.fwType = NULL; 
	if (hPrinter.StartDoc(&amp;myPrintJob)&gt;=0) 
	{ 
		hPrinter.StartPage();
		Drucken(&amp;hPrinter,false);
		hPrinter.EndPage();
		hPrinter.EndDoc();
	}
}
</code></pre>
<p>Die Seite ist immernoch im Hochformat!<br />
Wieso??? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1257889</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1257889</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Mon, 02 Apr 2007 11:54:25 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken (Querformat) on Tue, 03 Apr 2007 06:19:46 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">DEVMODEA devmodea; 
devmodea.dmOrientation=DMORIENT_LANDSCAPE; 
CPrintDialog dlgPrint(FALSE,PD_ALLPAGES,this);
</code></pre>
<p>Ist doch auch totaler Quatsch. Die DEVMODE Struktur,die Du dahin gesetzt hast, hast doch keine Verbindung mit dem CPrintDialog!</p>
<p>Ruf GetDefaults auf, besorg Dir dann mit GetDevMode den Zeiger auf die aktuelle DEMOMODE Struktur. Verändere die Orientierung und rufe dann DoMOdal auf!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258295</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 03 Apr 2007 06:19:46 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken (Querformat) on Thu, 05 Apr 2007 06:31:12 GMT]]></title><description><![CDATA[<p>Ich habe dies nun 2h versucht! Es wird jedoch nun den Druckerdialog nicht mehr angezeigt! Wieso nicht?<br />
Hier mein Code:</p>
<pre><code class="language-cpp">CPrintDialog dlgPrint(FALSE,PD_ALLPAGES,this); 
dlgPrint.GetDefaults();
dlgPrint.GetDevMode()-&gt;dmOrientation=DMORIENT_LANDSCAPE;

if (dlgPrint.DoModal()==IDOK) 
{ 	
     ...
}
</code></pre>
<p>Sobald ich GetDefaults(); auskommentiere, funktioniert DoModal() wieder!<br />
Wieso?<br />
Wo liegt das Problem???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1259725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1259725</guid><dc:creator><![CDATA[addict]]></dc:creator><pubDate>Thu, 05 Apr 2007 06:31:12 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken (Querformat) on Sat, 07 Apr 2007 12:51:10 GMT]]></title><description><![CDATA[<p>Sieht richtig aus. Ist es aber offenbar nicht, da es bei mir auch<br />
abschmiert.</p>
<p>Havy a try <a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/7665">@google</a>. Ich hab leider grad keine Zeit da weiter nach zu<br />
suchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1261164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1261164</guid><dc:creator><![CDATA[Tester]]></dc:creator><pubDate>Sat, 07 Apr 2007 12:51:10 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken (Querformat) on Sat, 07 Apr 2007 14:47:43 GMT]]></title><description><![CDATA[<p>Hi, mach es so:</p>
<pre><code class="language-cpp">CPrintDialog dlg(FALSE);
	dlg.GetDefaults();
//hier kommt der wichtige Teil an der Geschichte!!!
	dlg.m_pd.Flags &amp;= ~PD_RETURNDEFAULT;

	DEVMODE* dm=(DEVMODE*) GlobalLock(dlg.m_pd.hDevMode);
	dm-&gt;dmFields|=DM_ORIENTATION;
	dm-&gt;dmOrientation=DMORIENT_LANDSCAPE ;

	if(dlg.DoModal() == IDOK)
		{
		}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1261216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1261216</guid><dc:creator><![CDATA[Guffy]]></dc:creator><pubDate>Sat, 07 Apr 2007 14:47:43 GMT</pubDate></item></channel></rss>