Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 17200, Would like better support for printing ActiveX Controls

by Brant Anderson Email: Anonymous


I would like better support for printing ActiveX Controls in Delphi.
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 6.0 11 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Thu, 20 Dec 2001 19:53:27 GMT
Originally uploaded on Thu, 20 Dec 2001 19:56:42 GMT
Description
I would like better support for printing ActiveX Controls in Delphi. For example, to print an ActiveX Control from Visual Basic, all I have to do is:
Printer.PaintPicture BarCode1.Picture
While, in Delphi, I have to do this in a quick report (we have been unable to get it to print directly from Delphi):

procedure TForm2.QuickRep1BeforePrint(Sender: TCustomQuickRep; var PrintReport: Boolean);
begin
BarCode1.DataToEncode := '12345678';
QRImage1.Canvas.Lock(); //lock the canvas
BarCode1.PaintTo(QRImage1.Canvas.Handle, 1, 1); // draw to QRImage1
QRImage1.Canvas.Unlock(); // unlock the canvas
end;

And after all that code, there are still problems. Sometimes it will display on the screen and not print at all.

For more information, see http://www.idautomation.com/activex/

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03