<?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 ohne Druckdialog (VC++ 6.0)]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte drucken, ohne daß der Druckdialog bestätigt werden muß - also am besten, ohne daß dieser aufgerufen wird und habe es probiert, wie folgt:</p>
<p>PrintDlg.m_pd.hDevNames = NULL;</p>
<p>// if (PrintDlg.DoModal() != IDOK)<br />
// {<br />
// return;<br />
// }</p>
<p>PrinterDC.Attach(PrintDlg.CreatePrinterDC());</p>
<p>lPageWidth = ::MulDiv(PrinterDC.GetDeviceCaps(PHYSICALWIDTH),<br />
1440, PrinterDC.GetDeviceCaps(LOGPIXELSX)); &lt;== Assertion, weil m_hAttribDC == NULL<br />
......</p>
<p>An dieser &quot;&lt;==&quot; Stelle bekomme ich eine Assertion, weil m_hAttribDC == NULL</p>
<p>--------<br />
(<br />
_AFXWIN_INLINE int CDC::GetDeviceCaps(int nIndex) const<br />
{ ASSERT(m_hAttribDC != NULL); return ::GetDeviceCaps(m_hAttribDC, nIndex); }</p>
<p>m_hAttribDC... unused CXX0030: Fehler: Ausdruck kann nicht ausgewertet werden<br />
)<br />
--------</p>
<p>Wo und wie kann ich m_hAttribDC auf WAS setzen?</p>
<p>Weiß jemand, wie es funktioniert?</p>
<p>Vielen Dank im voraus!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/42664/drucken-ohne-druckdialog-vc-6-0</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 05:10:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/42664.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Jul 2003 11:06:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drucken ohne Druckdialog (VC++ 6.0) on Tue, 15 Jul 2003 11:06:47 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte drucken, ohne daß der Druckdialog bestätigt werden muß - also am besten, ohne daß dieser aufgerufen wird und habe es probiert, wie folgt:</p>
<p>PrintDlg.m_pd.hDevNames = NULL;</p>
<p>// if (PrintDlg.DoModal() != IDOK)<br />
// {<br />
// return;<br />
// }</p>
<p>PrinterDC.Attach(PrintDlg.CreatePrinterDC());</p>
<p>lPageWidth = ::MulDiv(PrinterDC.GetDeviceCaps(PHYSICALWIDTH),<br />
1440, PrinterDC.GetDeviceCaps(LOGPIXELSX)); &lt;== Assertion, weil m_hAttribDC == NULL<br />
......</p>
<p>An dieser &quot;&lt;==&quot; Stelle bekomme ich eine Assertion, weil m_hAttribDC == NULL</p>
<p>--------<br />
(<br />
_AFXWIN_INLINE int CDC::GetDeviceCaps(int nIndex) const<br />
{ ASSERT(m_hAttribDC != NULL); return ::GetDeviceCaps(m_hAttribDC, nIndex); }</p>
<p>m_hAttribDC... unused CXX0030: Fehler: Ausdruck kann nicht ausgewertet werden<br />
)<br />
--------</p>
<p>Wo und wie kann ich m_hAttribDC auf WAS setzen?</p>
<p>Weiß jemand, wie es funktioniert?</p>
<p>Vielen Dank im voraus!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/309634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309634</guid><dc:creator><![CDATA[Moni]]></dc:creator><pubDate>Tue, 15 Jul 2003 11:06:47 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken ohne Druckdialog (VC++ 6.0) on Wed, 16 Jul 2003 06:29:18 GMT]]></title><description><![CDATA[<p>Versuch mal anstelle des</p>
<pre><code class="language-cpp">// if (PrintDlg.DoModal() != IDOK) 
// { 
// return; 
// }
</code></pre>
<p>folgenden Code:</p>
<pre><code class="language-cpp">PrintDlg.GetDefaults();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/310240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/310240</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Wed, 16 Jul 2003 06:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to Drucken ohne Druckdialog (VC++ 6.0) on Wed, 16 Jul 2003 08:18:37 GMT]]></title><description><![CDATA[<p>Hallo Chris!</p>
<p>Funktioniert wunderbar! Vielen Dank!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/310328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/310328</guid><dc:creator><![CDATA[Moni]]></dc:creator><pubDate>Wed, 16 Jul 2003 08:18:37 GMT</pubDate></item></channel></rss>