<?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 : Access violation</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 : Access violation]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 07:53:25 +0000</pubDate>
  <lastBuildDate>Sun, 17 Mar 2013 14:11:16 +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=1734</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[Access violation : There is no difference of making...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10613.html#10613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2204">mmolenkp</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 17 Mar 13 at 2:11PM<br /><br />There is no difference of making changes in string or widestrings definitions. <DIV>My system is a Vista 64 bit Sp2 with QPDF 0812.</DIV><DIV>&nbsp;</DIV><DIV>But I fund a solution for my problem !!!</DIV><DIV>&nbsp;</DIV><DIV>I Insert the folowing line of code : cPrinter:=qp.NewCustomPrinter(edit2.text);</DIV><DIV>I can't explain why this is&nbsp;a solution, but it works.</DIV><DIV>&nbsp;</DIV><DIV>Another strange effect what I have seen is that without that line of code the error "Invalid printername" comes up and after that, QPDF returns on a not expected point in my program.</DIV><DIV>3&nbsp; lines of code after the END statement which should be the return point.</DIV><DIV>&nbsp;</DIV><DIV>So I&nbsp;think there is a failure in the QPDF.PrintDocument error recovery, becuase i am 100% sure that the printer name i use is the right one. I retrieve them by &nbsp;QPDF.Getprinternames;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>To solve this last failure I put a Try Except clause around the QPDF.PrintDocument statement..</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 17 Mar 2013 14:11:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10613.html#10613</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : Ik Have declared the printer name...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10605.html#10605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2204">mmolenkp</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 14 Mar 13 at 10:02AM<br /><br />Ik Have declared the printer name as follows : var ws_prtname : WideString;<DIV></DIV><DIV></DIV><DIV></DIV>Ik give no difference.<DIV>When i use the default printer.pas I get failure : Invalid printer name.</DIV><DIV>When I use the modified printer.pas I get failure : Device not ready </DIV><DIV>&nbsp;</DIV><DIV>I think there must be something wrong in the printer.pas or other units of Delphi 7.</DIV>]]>
   </description>
   <pubDate>Thu, 14 Mar 2013 10:02:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10605.html#10605</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : Hi!I see edit2.text... Newer versions...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10602.html#10602</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 13 Mar 13 at 10:35PM<br /><br />Hi!<br><br>I see edit2.text... Newer versions of QuickPDF need a wide-string!<br>If your technical printer name contains spaces perhpas this could be a second problem.<br><br>&nbsp;This is my code and it works very well.<br>&nbsp;PriName is declared as WideString.<br>&nbsp;<br>&nbsp;if ( prname = 'default') Then<br>&nbsp;&nbsp;&nbsp; PriName := QP.GetDefaultPrinterName<br>&nbsp;&nbsp; Else&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; PriName := prname;<br><br>&nbsp;propt := QP.PrintOptions(pscal, 0, filename);<br>&nbsp;pc := QP.PageCount;<br>&nbsp;for i := 1 to copies do<br>&nbsp;&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.PrintDocument(PriName, 1, pc, propt);<br>&nbsp;&nbsp;&nbsp; end;<br><br>]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 22:35:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10602.html#10602</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : My program was very simpel: After...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10601.html#10601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2204">mmolenkp</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 13 Mar 13 at 10:23PM<br /><br />My program was very simpel:<DIV>After the modifications made by the mentioned link:</DIV><DIV>It works only on de default printer, other printers get the message printer not ready </DIV><DIV>I get the printernames by :QP.GetPrinterNames;</DIV><DIV>Complete code (77 lines) &nbsp;below</DIV><DIV>var<BR>&nbsp; Form1: TForm1;<BR>&nbsp; QP: TQuickPDF0811;<BR>&nbsp; QPKEY, prts : STring;<BR>&nbsp; UnlockResult, filea, rc : Integer;<BR>&nbsp; npn : string;<BR>&nbsp; c : pchar;</DIV><DIV>implementation</DIV><DIV>{$R *.dfm}<BR>procedure TForm1.Button1Click(Sender: TObject);<BR>begin<BR>Edit3.Text:='Pending';&nbsp;&nbsp; application.ProcessMessages;<BR>&nbsp;&nbsp;&nbsp;&nbsp; UnlockResult := QP.UnlockKey(qpkey);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if UnlockResult = 1 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If FileExists(edit1.text) = true then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LOADFROMfILE(edit1.text, '');&nbsp; filea := QP.SelectedDocument();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rc:=QP.PrintDocument(edit2.text, 1, 6, QP.PrintOptions(1, 1, 'Formular'));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end; { End of Unlock&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit3.Text:=intTostr(rc);<BR>end;</DIV><DIV>procedure TForm1.ListBox1DblClick(Sender: TObject);<BR>begin<BR>edit2.Text:=listbox1.Items&#091;listbox1.itemindex&#093;;<BR>listbox1.selected&#091;listbox1.Itemindex&#093;:=true;<BR>end;</DIV><DIV>procedure TForm1.ListBox1Click(Sender: TObject);<BR>begin<BR>edit2.Text:=listbox1.Items&#091;listbox1.itemindex&#093;;<BR>listbox1.selected&#091;listbox1.Itemindex&#093;:=true;<BR>end;</DIV><DIV>procedure TForm1.FormCreate(Sender: TObject);<BR>begin<BR>QPkey:= 'Mykey';<BR>QP := TQuickPDF0811.Create;<BR>edit2.text:= QP.GetDefaultPrinterName();<BR>prts:=QP.GetPrinterNames;<BR>listbox1.Clear;<BR>listbox1.Items.DelimitedText:=prts;<BR>listbox1.Itemindex:=listbox1.items.indexof(edit2.text);<BR>listbox1.selected&#091;listbox1.Itemindex&#093;:=true;<BR>end;<BR>end.</DIV>]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 22:23:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10601.html#10601</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation :  Hi!This isn&amp;#039;t &amp;#034;your...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10600.html#10600</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 13 Mar 13 at 10:18PM<br /><br />Hi!<br><br>This isn't "your simple line".<br>This was it:<br>rc:=QP.PrintDocument(rc:=QP.PrintDocument, 1, 6, QP.PrintOptions(1, 0, 'Formular'));, 1, 6, QP.PrintOptions(1, 0, 'Formular'));<br>And btw your second line won't work 'cause the function name is wrong (the missing e) ;-)<br>And again the printer unit in Delphi 2007 works in the described case.<br>I've worked with Delphi 2007 under xp/32 bit, vista 64 bit, win7/32 bit and win7/64 bit.<br><br>Cheers, Ingo<br><span style="font-size:10px"><br /><br />Edited by Ingo - 13 Mar 13 at 10:20PM</span>]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 22:18:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10600.html#10600</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation :   mmolenkp wrote: My line of...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10599.html#10599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2204">mmolenkp</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 13 Mar 13 at 10:06PM<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mmolenkp" alt="Originally posted by mmolenkp" style="vertical-align: text-bottom;" /> <strong>mmolenkp wrote:</strong><br /><br /><DIV>My line of code in Delphi 7 was very simple:</DIV><DIV>rc:=QP.PrintDocument(QP.GetDefaultPrinternam, 1, 6, QP.PrintOptions(1, 0, 'Formular'));, 1, 6, QP.PrintOptions(1, 0, 'Formular'));</DIV><DIV>&nbsp;</DIV><DIV>I get the same kind of error:Invalid printer name.</DIV><DIV>Much google work done an came on <a href="http://www.codenewsfast.com/cnf/article//permalink.art-ng1612q9464" target="_blank"><U><FONT color=#800080>http://www.codenewsfast.com/cnf/article//permalink.art-ng1612q9464</FONT></U></A> </DIV><P>It seems that the delphi 2007 printer unit:Printer.pas is not designed for Vista and up. The referenced entry give the option to change the source of Printer.pas. On vista it solved my problem. </P></td></tr></table> ]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 22:06:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10599.html#10599</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : Hi!First you should try GetPrinterNames...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10598.html#10598</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 13 Mar 13 at 9:35PM<br /><br />Hi!<br><br>First you should try GetPrinterNames to be sure you have the absolutely correct technical printer names in your system.<br>Please keep in mind that the variable for the printer name should be a wide string.<br>I'm still using Delphi 2007 and specially the printer functionalities works and is easy to manage.<br><br>Cheers and welcome here,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 21:35:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10598.html#10598</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : My line of code in Delphi 7 was...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post10597.html#10597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2204">mmolenkp</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 13 Mar 13 at 8:44PM<br /><br /><DIV>My line of code in Delphi 7 was very simple:</DIV><DIV>rc:=QP.PrintDocument(rc:=QP.PrintDocument, 1, 6, QP.PrintOptions(1, 0, 'Formular'));, 1, 6, QP.PrintOptions(1, 0, 'Formular'));</DIV><DIV>&nbsp;</DIV><DIV>I get the same kind of error:Invalid printer name.</DIV><DIV>Much google work done an came on <a href="http://www.codenewsfast.com/cnf/article//permalink.art-ng1612q9464" target="_blank"><U><FONT color=#800080>http://www.codenewsfast.com/cnf/article//permalink.art-ng1612q9464</FONT></U></A> </DIV><P>It seems that the delphi 2007 printer unit:Printer.pas is not designed for Vista and up. The referenced entry give the option to change the source of Printer.pas. On vista it solved my problem. </P>]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 20:44:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post10597.html#10597</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : Hi Bart!Please have a look at...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post7868.html#7868</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 09 May 11 at 1:35PM<br /><br />Hi Bart!<br><br>Please have a look at Rowan's post from 31 Mar 11 at 11:35PM.<br><br>Cheers and welcome here,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Mon, 09 May 2011 13:35:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post7868.html#7868</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation : Hi,   I&amp;#039;m dealing with...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation_topic1734_post7867.html#7867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1595">bartvandessel</a><br /><strong>Subject:</strong> 1734<br /><strong>Posted:</strong> 09 May 11 at 1:21PM<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I'm dealing with the same problem. Delphi XE &amp; QuickPdf 7.24. Windows 7 64bit</DIV><DIV>&nbsp;</DIV><DIV>qp :=&nbsp; TQuickPDF0724.Create;</DIV><DIV>&nbsp;</DIV><DIV>Event Log Delphi: Degub Output, CryptoAcquireContext: Failed to read registry signature value at cryptapi.c line 873</DIV><DIV>&nbsp;</DIV><DIV>Have you already found a solution?</DIV><DIV>&nbsp;</DIV><DIV>thx</DIV><span style="font-size:10px"><br /><br />Edited by bartvandessel - 09 May 11 at 1:26PM</span>]]>
   </description>
   <pubDate>Mon, 09 May 2011 13:21:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation_topic1734_post7867.html#7867</guid>
  </item> 
 </channel>
</rss>