RE: Can't save meta file

From: McLeod (McLeod_at_discussions.microsoft.com)
Date: 11/10/04


Date: Wed, 10 Nov 2004 01:53:04 -0800

Hi,

You can't save out a metafile by design. You'r simply not ment to do so.

You can copy it to the clipboard using a metafile helper class and then
paste into excel, word or Corel Draw. From Corel Draw you can save it as a
metafile. However, I don't think that manually saving it out is what you are
looking for.

"Amendra TheUltimate via .NET 247" wrote:

> Hi,
>
> I have tried saving a metafile, using a memory stream.
>
> somemetafile.Save(m, ImageFormat.Emf);
>
> But when you specify the image format as Emf I get a GDI exception saying an internal error occured. Other types are allowed other than wmf as well.
>
> Only wmf and emf saving throws the exception.
> Any hope.
>
> --------------------------------
> From: Amendra TheUltimate
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>s/M3MCRlKUGpyHPfRO9tqQ==</Id>
>



Relevant Pages

  • Re: Writing metafiles in VB.net
    ... And there is no simple way of saving a metafile. ... Since you are understandably using the VB.Net native metafile methods you'll need to add the System.Drawing reference as already suggested by Tom and you'll then see that the code at the link I posted creates a disk based metafile for you. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Metafile EXTTEXTOUT record structure?
    ... have you ever thought of just playing the metafile into a DC and saving it ... as a bitmap then converting it to a PNG directly? ...
    (microsoft.public.win32.programmer.gdi)
  • Cant save meta file
    ... I have tried saving a metafile, ... But when you specify the image format as Emf I get a GDI exception saying an internal error occured. ... Other types are allowed other than wmf as well. ...
    (microsoft.public.dotnet.framework.drawing)
  • Cant save meta file
    ... I have tried saving a metafile, ... But when you specify the image format as Emf I get a GDI exception saying an internal error occured. ... Other types are allowed other than wmf as well. ...
    (microsoft.public.dotnet.framework.drawing)
  • Cant save meta file
    ... I have tried saving a metafile, ... But when you specify the image format as Emf I get a GDI exception saying an internal error occured. ... Other types are allowed other than wmf as well. ...
    (microsoft.public.dotnet.framework.drawing)