Re: printing metafiles



Mike Glazer wrote:
I have the following code in Delphi where I am trying to print a metafile:

Printer.BeginDoc;

Printer.Canvas.StretchDraw(Rect(1,1,Printer.PageWidth-1,
Printer.PageHeight-1),m);

Printer.EndDoc;

But Dephi7 objects with the message
[Error] (1036): Incompatible types: 'TGraphic' and 'TMetafile'
Any ideas?
Mike G


Create a Tpicture Object first..

MyPictureObject.Assign(M);
then pass the MyPictureObject instead of the M.

remember to free it at some point after printing for example.


http://webpages.charter.net/jamie_5";

.