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).
datamatrix1.rebuild:=true; datamatrix1.paintBarcode(Image2dBC.Canvas); ppImage2DBC.picture:=image2DBC.picture; datamatrix1.free; 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. 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. But I have a few things to look for so thanks all John Bird JBCL Contact: [email protected] [email protected] 022 3844 527 03 3844 527 http://www.jbcl.co.nz http://jbclnz.googlepages.com From: Todd Martin Sent: Thursday, March 28, 2013 3:29 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Report Builder/Printer driver oddity Hi John Is the image coming from a BLOB field in the database? If not, where is it being generated? 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? Todd. Came across an odd one – any ideas anyone? Delphi 5 Report using Builder 6 printing courier ticket labels to a label printer (Zebra Z4M Plus). 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. -* BUT *- one oddity remains: 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 “Accessing data” and hangs “Printing page xx” where the the number keeps increasing forever (and doesn’t print) Anyone have an idea what in Report Builder could be the issue? 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. John Bird _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe -- Fortune favours the brave -------------------------------------------------------------------------------- _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
