<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type></HEAD>
<BODY dir=ltr bgColor=#ffffff text=#000000>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Verdana'; COLOR: #000080; FONT-SIZE: 12pt">
<DIV>The image is a 2d barcode which is generated is some code preparing the
ticket for printing, and then copied into the Report Builder image – as I recall
its done this way as the function to generate the 2d barcode works on a TImage
but not on a Report Builder image (ppImage I think).</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>datamatrix1.rebuild:=true;</DIV>
<DIV>datamatrix1.paintBarcode(Image2dBC.Canvas);</DIV>
<DIV>ppImage2DBC.picture:=image2DBC.picture;</DIV>
<DIV>datamatrix1.free;</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>If thats the issues then it would be easy to test by omitting the copying
of the image to see if that clears the problem...so I will look at that.</DIV>
<DIV> </DIV>
<DIV>The debugger took me down a long alleyway of low level windows stuff
looking to do with Windows printing and screen updating and wasn’t much use so
far.</DIV>
<DIV> </DIV>
<DIV>But I have a few things to look for so thanks all</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Verdana'; COLOR: #000080; FONT-SIZE: 12pt">John
Bird<BR>JBCL<BR>Contact:<BR>johnkbird@paradise.net.nz<BR>jbcl@jbcl.co.nz<BR>022
3844 527<BR>03 3844
527<BR>http://www.jbcl.co.nz<BR>http://jbclnz.googlepages.com<BR></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV><FONT color=#000080 size=3 face=Verdana></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=todd.martin.nz@gmail.com
href="mailto:todd.martin.nz@gmail.com">Todd Martin</A> </DIV>
<DIV><B>Sent:</B> Thursday, March 28, 2013 3:29 PM</DIV>
<DIV><B>To:</B> <A title=delphi@listserver.123.net.nz
href="mailto:delphi@listserver.123.net.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV><B>Subject:</B> Re: [DUG] Report Builder/Printer driver
oddity</DIV></DIV></DIV>
<DIV><FONT color=#000080 face=Verdana></FONT> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Hi
John<BR><BR>Is the image coming from a BLOB field in the database? If not, where
is it being generated?<BR><BR>Report Builder spawns a worker thread for
printing. I have seen this hanging behaviour, when an exception is raised in
your own code (maybe in the driver). Possibly in the main thread. Have you tried
stepping through with the debugger?<BR><BR>Todd.<BR><BR>
<BLOCKQUOTE cite=mid:5E493A71605949E79BCB0317DB4A1E9E@JohnSony2 type="cite">
<META name=Generator
content="Microsoft Word 14 (filtered medium)">
<STYLE><!--
/* Font Definitions */
@font-face
        {font-family:calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.msonormal, li.msonormal, div.msonormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.msohyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.msohyperlinkfollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.emailstyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1f497d;}
...msochpdefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:en-us;}
@page wordsection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.wordsection1
        {page:wordsection1;}
--></STYLE>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Verdana'; COLOR: rgb(0,0,128); FONT-SIZE: 12pt">
<DIV>Came across an odd one – any ideas anyone?</DIV>
<DIV> </DIV>
<DIV>Delphi 5 Report using Builder 6 printing courier ticket labels to a label
printer (Zebra Z4M Plus).</DIV>
<DIV> </DIV>
<DIV>Added a 2d barcode, all worked fine except could not get the left margin
OK. Investigated if it could be a driver bug, so got a later
driver which came with a calibrate function that solved the page margin layout
problems.</DIV>
<DIV> </DIV>
<DIV>-* BUT *-</DIV>
<DIV> </DIV>
<DIV>one oddity remains:</DIV>
<DIV> </DIV>
<DIV>To print the label one has to go into the printer options and click
OK. If one does not (and just clicks the Print button), the Report
Builder print dialog comes up with either one of</DIV>
<DIV> </DIV>
<DIV>“Accessing data” and hangs</DIV>
<DIV> </DIV>
<DIV>“Printing page xx” where the the number keeps increasing
forever (and doesn’t print)</DIV>
<DIV> </DIV>
<DIV>Anyone have an idea what in Report Builder could be the issue?</DIV>
<DIV> </DIV>
<DIV>Have tried everything could think of, such as setting 1-pass or 2-pass
printing (options in Report Builder). Data is coming from standard
TClientDataSet via Report Builder data pipeline as normal. The
only thing added was an image which has the 2d barcode encoded into it.</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Verdana'; COLOR: rgb(0,0,128); FONT-SIZE: 12pt">John
Bird<BR></DIV></DIV></DIV><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <A class=moz-txt-link-abbreviated href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</A>
Admin: <A class=moz-txt-link-freetext href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</A>
Unsubscribe: send an email to <A class=moz-txt-link-abbreviated href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</A> with Subject: unsubscribe</PRE></BLOCKQUOTE><BR><BR>
<DIV class=moz-signature>-- <BR><I>Fortune</I> favours the <B>brave</B></DIV>
<P>
<HR>
_______________________________________________<BR>NZ Borland Developers Group -
Delphi mailing list<BR>Post: delphi@listserver.123.net.nz<BR>Admin:
http://delphi.org.nz/mailman/listinfo/delphi<BR>Unsubscribe: send an email to
delphi-request@listserver.123.net.nz with Subject:
unsubscribe<BR></DIV></DIV></DIV></BODY></HTML>