printing metafiles



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


.



Relevant Pages

  • Re: reading photoshop layers
    ... Mike D Sutton wrote: ... > Delphi isn't too bad at all to work with, I use it on a regular basis at work and find it to be somewhere in the middle ... > the docs or in the source code itself that suggested it could decode individual layers, ... but even then a few hours with a hex editor and some version of the format spec. ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Moving from VB to Delphi?
    ... Look for Mike D Sutton thread. ... "What To Do" to make the transition from VB to Delphi. ... > The major OCX that will need replacing is the ComponentOne FlexGrid ... > area is the connection to an Access database via DAO 3.5 - this is ...
    (alt.comp.lang.borland-delphi)
  • Re: Moving from VB to Delphi?
    ... Look for Mike D Sutton thread. ... > "What To Do" to make the transition from VB to Delphi. ... >> The major OCX that will need replacing is the ComponentOne FlexGrid ... >> area is the connection to an Access database via DAO 3.5 - this is ...
    (alt.comp.lang.borland-delphi)
  • ANN: RemObjects Software welcomes Mike Orriss as Documentation Manager
    ... We are proud to announce that Mike Orriss has joined RemObjects Software and ... Mike has been in the computer industry since 1970. ... He started working with the early experience version of Delphi 1 in December ... intends to move closer to the coast to a smaller house. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Vb and NewsGroups
    ... Thank you very much Rob. ... Also thanks Mike. ... I don't want to use export function of Delphi. ... > Winsock API ...
    (microsoft.public.vb.winapi.networks)