BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WMF/EMF to clipboard

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Dimitris Giannitsaros
Guest





PostPosted: Fri Jun 25, 2004 1:02 am    Post subject: WMF/EMF to clipboard Reply with quote



Hi all,

I am trying to copy wmf and emf images to the clipboard. I have read
anything i could find on usenet and this is the code i am using:

Metafile := TMetafile.Create;
Metafile.LoadFromFile(ImgPath);
Metafile.Enhanced := True;
Metafile.Width := ImgWidth;
Metafile.Height := ImgHeight;
MetafileCanvas := TMetafileCanvas.Create(Metafile,
MainForm.Canvas.Handle);
MetafileCanvas.Draw(0, 0, Metafile);
MetafileCanvas.Free;
Clipboard.Assign(Metafile);
Metafile.Free;

This works fine on any machines i could try (with WindowsXP and 2000).
Now a user of my program (plug: www.daremon.gr/cheez/ freeware image
cataloguing tool) reports a problem: when copying WMF files, only part
of the WMF is being copied (he can see this part of the image in
ClipboardViewer and only this part gets pasted in Word or CorelDraw).
He is using Windows 2000.

Does anyone have any ideas what i should try?

Regards,
Dimitris
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.