<?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 : Newbe Question</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 : Newbe Question]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 05 May 2026 10:21:50 +0000</pubDate>
  <lastBuildDate>Wed, 08 Jul 2009 08:30:47 +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=1134</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[Newbe Question :  What is the first message that...]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5267.html#5267</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=370">ukobsa</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 08 Jul 09 at 8:30AM<br /><br /><P>What is the first message that you get? Note that getting back zero indicates an error while not zero indicates success!</P><P>What is the value of curPage? And how is TMyQuickPDF defined? Is there any additional code in it. And what happens when after setting the page dimensions you try to read them again? Are the values right?</P><P></P><P>best regards,</P><P>Ulrich</P>]]>
   </description>
   <pubDate>Wed, 08 Jul 2009 08:30:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5267.html#5267</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : Perhaps you should check if the...]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5266.html#5266</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 07 Jul 09 at 4:07PM<br /><br />Perhaps you should check if the value in dpi is the correct one?]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 16:07:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5266.html#5266</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : Sorry, none of the suggestions...]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5265.html#5265</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1103">RhoTu</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 07 Jul 09 at 2:54PM<br /><br /><DIV>Sorry, none of the suggestions work.&nbsp; I still get no '0' returns, yet I get the range check error but not all of the time.&nbsp; Using D7 and VISTA64.&nbsp; Can someone with Delphi see if they get the error as well?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>procedure TForm1.Button1Click(Sender: TObject);<BR>var<BR>&nbsp; qp:TMyQuickPDF;<BR>&nbsp; currPage,dpi:integer;<BR>&nbsp; i:integer;<BR>begin<BR>&nbsp; try<BR>&nbsp;&nbsp;&nbsp; qp:=TMyQuickPDF.create; // unLockKey called in TMyQuickPDF.create after inherited create<BR>&nbsp;&nbsp;&nbsp; if 0=qp.SetOrigin(1)then </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showMessage('result: '+intToStr(i));<BR>&nbsp;&nbsp;&nbsp; currpage:=qp.SelectedPage;<BR>&nbsp;&nbsp;&nbsp; dpi:=screen.PixelsPerInch;<BR>&nbsp;&nbsp;&nbsp; if 0=qp.SetPageDimensions(11*dpi,8.5*dpi) then</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;showMessage('result: '+intToStr(i));<BR>&nbsp;&nbsp;&nbsp; if 0=qp.SetTextColor(1,1,1) then </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showMessage('result: '+intToStr(i));<BR>&nbsp;&nbsp;&nbsp; if 0=qp.SetFillColor(0.2,0.4,0.1) then </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showMessage('result: '+intToStr(i));<BR>&nbsp;&nbsp;&nbsp; if 0=qp.DrawBox(1*dpi,1*dpi,4*dpi,1*dpi,2) then </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showMessage('result: '+intToStr(i));<BR>&nbsp;&nbsp;&nbsp; if 0=qp.DrawTextBox(1*dpi,1*dpi,4*dpi,1*dpi,'This is a Test',0) then </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showMessage('result: '+intToStr(i));<BR>&nbsp;&nbsp;&nbsp; if 0=qp.RenderPageToDC(dpi,currPage,image1.Canvas.Handle) then </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showMessage('result: '+intToStr(i));<BR>&nbsp; except on e:exception do<BR>&nbsp;&nbsp;&nbsp; showMessage(e.Message);<BR>&nbsp; end;<BR>&nbsp; freeAndNil(qp);<BR>end;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 14:54:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5265.html#5265</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : You should also set the orgin...]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5264.html#5264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=129">DELBEKE</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 07 Jul 09 at 7:26AM<br /><br />You should also set the orgin with <DIV>Qp.SetOrigin(1); //Origin at top/left</DIV>]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 07:26:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5264.html#5264</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : Sorry... i didn&amp;#039;t see it...]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5263.html#5263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 07 Jul 09 at 5:47AM<br /><br />Sorry... i didn't see it ;-)<BR><DIV>What are the returning values of your functions?</DIV><DIV>result := QP.SetPageDimensions(...</DIV><DIV>result2 := QP.DrawBox(...</DIV><DIV>Perhaps then you see where's the prob.</DIV><DIV>If SetPageDimensions doesn't work then (later) your DrawBox getting out of range...</DIV><DIV>Something like this ...</DIV><DIV><BR>Cheers, Ingo </DIV><span style="font-size:10px"><br /><br />Edited by Ingo - 07 Jul 09 at 6:41AM</span>]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 05:47:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5263.html#5263</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : Screen.PixelsPerInch=96 ]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5262.html#5262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1103">RhoTu</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 06 Jul 09 at 10:11PM<br /><br />Screen.PixelsPerInch=96]]>
   </description>
   <pubDate>Mon, 06 Jul 2009 22:11:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5262.html#5262</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : Hi What&amp;#039;s in dpi?  ]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5261.html#5261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 06 Jul 09 at 10:08PM<br /><br />Hi What's in dpi?<br><br>]]>
   </description>
   <pubDate>Mon, 06 Jul 2009 22:08:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5261.html#5261</guid>
  </item> 
  <item>
   <title><![CDATA[Newbe Question : Can anyone explain why the following...]]></title>
   <link>http://www.quickpdf.org/forum/newbe-question_topic1134_post5260.html#5260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1103">RhoTu</a><br /><strong>Subject:</strong> 1134<br /><strong>Posted:</strong> 06 Jul 09 at 9:58PM<br /><br /><DIV>Can anyone explain why the following code gives me a 'range check' error?&nbsp; Test program has a TImage and a TButton.&nbsp; If I issue the SetFillColor or the DrawBox functions the error occurs upon the RenderPageToDC(dpi,currPage,image1.Canvas.Handle) call.<BR></DIV><DIV>&nbsp;</DIV><DIV>procedure TForm1.Button1Click(Sender: TObject);<BR>var<BR>&nbsp; qp:TMyQuickPDF;<BR>&nbsp; currPage,dpi:integer;<BR>begin<BR>&nbsp; qp:=TMyQuickPDF.create; // unLockKey called in TMyQuickPDF.create after inherited create<BR>&nbsp; currpage:=qp.SelectedPage;<BR>&nbsp; dpi:=screen.PixelsPerInch;<BR>&nbsp; qp.SetPageDimensions(11*dpi,8.5*dpi);<BR>//&nbsp; qp.SetFillColor(0.8,0.1,0.1);<BR>&nbsp; qp.SetTextColor(0.01,0.01,0.9);<BR>//&nbsp; qp.DrawBox(1*dpi,1*dpi,4*dpi,1*dpi,0);<BR>&nbsp; qp.DrawTextBox(1*dpi,1*dpi,4*dpi,1*dpi,'This is a Test',0);<BR>&nbsp; qp.RenderPageToDC(dpi,currPage,image1.Canvas.Handle);<BR>&nbsp; freeAndNil(qp);<BR>end;<BR></DIV><DIV>&nbsp;</DIV><DIV>TIA</DIV><DIV>&nbsp;</DIV><DIV>RT</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 06 Jul 2009 21:58:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newbe-question_topic1134_post5260.html#5260</guid>
  </item> 
 </channel>
</rss>