<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Printer Properties - settings</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Printer Properties - settings]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Jul 2026 07:02:51 +0000</pubDate>
  <lastBuildDate>Fri, 20 Sep 2013 10:38:56 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=2722</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Printer Properties - settings : Ian,Which version of Quick PDF...]]></title>
   <link>http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11202.html#11202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2722<br /><strong>Posted:</strong> 20 Sep 13 at 10:38AM<br /><br />Ian,<div><br></div><div>Which version of Quick PDF Library are you using. 9.15 and 9.16 should work reasonably well with DEVMODE.</div><div><br></div><div>I will make sure we review the documentation and add some sample code. &nbsp;</div><div><br></div><div>I suspect it is not a bug but is based on how the code is implemented.</div><div><br></div><div>The&nbsp;<span style=": rgb251, 251, 253; line-height: 1.4;">GetPrinterDevModeToString function returns the currently active DEVMODE string for the custom printer. &nbsp;Calling&nbsp;</span><span style=": rgb251, 251, 253; line-height: 1.4;">SetPrinterDevModeFromString</span><span style=": rgb251, 251, 253; line-height: 1.4;">&nbsp;doesn't actually update the DEVMODE until the actual call to PrintDocument. &nbsp;</span><span style=": rgb251, 251, 253; line-height: 1.4;">SetPrinterDevModeFromString will save the string to a temporary buffer until the call to PrintDocument. &nbsp;Again some better documentation would help here.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">I would need to review the code full to determine why it is working this way and determine if it makes sense to update the DEVMODE straight away or not. &nbsp;There must be some reason it was done this way in the first place.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Andrew.</span></div>]]>
   </description>
   <pubDate>Fri, 20 Sep 2013 10:38:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11202.html#11202</guid>
  </item> 
  <item>
   <title><![CDATA[Printer Properties - settings : Guys, finally I was able to fix...]]></title>
   <link>http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11201.html#11201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2455">ibigon</a><br /><strong>Subject:</strong> 2722<br /><strong>Posted:</strong> 20 Sep 13 at 10:10AM<br /><br />Guys, <br><br>finally I was able to fix the problem. I did not call the "NewCustomPrinter" function before calling "SetPrinterDevModeFromString" - that was the problem. After this fix the printer accepts&nbsp; the passed DEVMODE.<br><br>Unfortunatelly the documentation is very poor, and does not mention this fact. <br><br>The function GetPrinterDevModeToString is buggy, while it returns the default DEVMODE for my custom printer instead of the modified one.<br><br>std::wstring lMyPrinter = NewCustomPrinter(lSelPrinter);<br>int lRetVal = SetPrinterDevModeFromString(lMyDevModeStr);<br>std::string lTmpDevStr = GetPrinterDevModeToString(lMyPrinter);<br><br>BUG: lTmptDevStr is not equal to lMyDevModeStr, but the printer prints with using lMyDevModeStr<br><br>Thanks,<br>Ian<br><br>]]>
   </description>
   <pubDate>Fri, 20 Sep 2013 10:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11201.html#11201</guid>
  </item> 
  <item>
   <title><![CDATA[Printer Properties - settings : Hi, Thanks for your help.I am...]]></title>
   <link>http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11196.html#11196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2455">ibigon</a><br /><strong>Subject:</strong> 2722<br /><strong>Posted:</strong> 19 Sep 13 at 10:58PM<br /><br />Hi, Thanks for your help.<br><br>I am using c++.<br>So finally I was able to correctly cast the std::string to DEVMODE and vice versa, <b>but unfortunatelly the QPL </b><b>SetPrinterDevModeFromString function is not working for me, and the PrintPages and PrintDocument functions prints always with default printer settings. </b><br><br>Here is my pseudo code:<br><br>std::string lOrigDevStr = GetPrinterDevModeToString(lSelPrinter); //get the default DEVMODE via QPL<br>LPDEVMODE lDevModeP; //declare and allocate memory for the lDevModeP data ...<br>//open printer, etc.<br><br>&nbsp;DocumentProperties(hWnd,&nbsp; hPrinter,&nbsp; lSelPrinter,&nbsp; lDevModeP,&nbsp; NULL,&nbsp; DM_OUT_BUFFER|DM_IN_PROMPT); /*Show the Printer Properties Dialog and get the the modified DEVMODE into lDevModeP output buffer */ <br><br>std::string lModifiedDevStr (lDevModeP, lReqSize); //it is converted well to std::string<br>SetPrinterDevModeFromString(lModifiedDevStr ); //return value is 1, unfortunately undocumented<br><br>std::string lNewDevStr = GetPrinterDevModeToString(lSelPrinter); <br><br>.<b>.. the read lNewDevStr is equal to initial lOrigDevStr, but it should be equal to lModifiedDevStr! The SetPrinterDevModeFromString function does not really changes the printer properties for me. Any help would be appreciated,</b><br>Thanks,<br>Ian<br><br><br><br><br><br><br><br><br><br><br><br><br><br><span style="font-size:10px"><br /><br />Edited by ibigon - 19 Sep 13 at 11:00PM</span>]]>
   </description>
   <pubDate>Thu, 19 Sep 2013 22:58:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11196.html#11196</guid>
  </item> 
  <item>
   <title><![CDATA[Printer Properties - settings : Ian,Which programming language...]]></title>
   <link>http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11180.html#11180</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2722<br /><strong>Posted:</strong> 12 Sep 13 at 11:15AM<br /><br /><div>Ian,</div><div><br></div>Which programming language are you using ?<div><br></div><div>In C#, VB.NET it just needs to be a byte&#091;&#093; the same length as the DEVMODE structure.</div><div><br></div><div>In Delphi it is an AnsiString.</div><div><br></div><div>In other languages you need to call CreateBuffer, AddToBuffer and ReleaseBuffer functions to create the required string.</div><div><br></div><div>Andrew.</div><div><br></div><div><br></div><div><br><div><br></div></div>]]>
   </description>
   <pubDate>Thu, 12 Sep 2013 11:15:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11180.html#11180</guid>
  </item> 
  <item>
   <title><![CDATA[Printer Properties - settings : Hi,is there any API to show the...]]></title>
   <link>http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11152.html#11152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2455">ibigon</a><br /><strong>Subject:</strong> 2722<br /><strong>Posted:</strong> 01 Sep 13 at 12:55PM<br /><br />Hi,<br><br>is there any API to show the printers default properties dialog in DLL version?<br><br>I tried: <br>GetPrinterDevModeFromString<br>SetPrinterDevModeFromString<br><br>None of them showed the the standard properties dialog. I can show it with the win system call: <br>DocumentProperties with flag DM_IN_PROMPT <br><br>but how can I then pass the filled DEVMODE struct to QuickPDF lib?<br><br>Is there any conversion from DEVMODE to a correctly formatted string for SetPrinterDevModeFromString<br><br>Thanks,<br>Ian<br><br><br>]]>
   </description>
   <pubDate>Sun, 01 Sep 2013 12:55:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printer-properties-settings_topic2722_post11152.html#11152</guid>
  </item> 
 </channel>
</rss>