{"id":206,"date":"2007-05-12T17:02:06","date_gmt":"2007-05-12T15:02:06","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/quickreport-win2000-and-accessviolation\/"},"modified":"2007-05-12T17:02:07","modified_gmt":"2007-05-12T15:02:07","slug":"quickreport-win2000-and-accessviolation","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/quickreport-win2000-and-accessviolation\/","title":{"rendered":"QuickReport, Win2000 and AccessViolation"},"content":{"rendered":"<p><em>Q: QuickReport (QR) brings AccessViolations on Win2000 if<br \/>\n   i try to print more or bigger pages or pages with graphics.<br \/>\n   What can i do?<br \/>\n<\/em><br \/>\nA:<br \/>\nWin2000 has a long Temp-Path which QR doesn&#8217;t like<br \/>\nSolution a) set the Temp-Path variable of Win2000 to a short path like &#8216;c:\\temp&#8217;<\/p>\n<p>Solution b) if you have the QR sources then fix this problem by setting the<br \/>\nString-Variable for the temp-path to 255 chars.<\/p>\n<p>[code lang=&#8221;delphi&#8221;]Source: QRprntr.pas<\/p>\n<p>function TempFilename : string;<br \/>\nvar<br \/>\n  AName,<br \/>\n  ADir : array[0..255] of char;<br \/>\n{$ifndef win32}<br \/>\n  ADrive : char;<br \/>\n{$endif}<br \/>\nbegin<br \/>\n{$ifdef win32}<br \/>\n  GetTempPath(255, adir);<br \/>\n  GetTempFilename(aDir, PChar(&#8216;QRP&#8217;), 0, aName);<br \/>\n{$else}<br \/>\n  ADrive := GetTempDrive(ADrive);<br \/>\n  GetTempFilename(ADrive, PChar(&#8216;QRP&#8217;), 0, aName);<br \/>\n{$endif}<br \/>\n  result := StrPas(aName);<br \/>\nend;<br \/>\n[\/code]<\/p>\n<p>[tags]Delphi, Printing[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q: QuickReport (QR) brings AccessViolations on Win2000 if i try to print more or bigger pages or pages with graphics. What can i&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,119],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-3k","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/206"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}