If so, the parameter of the call, your stream does not contain a valid metafile. If this is a file stream, try to name a file with some application which can read EMF or WMF. I would recommend Inkscape,
http://en.wikipedia.org/wiki/Inkscape[
^],
http://www.inkscape.org/[
^].
If this is a stream of some other kind, copy it to a file stream and save as a file, check it up the same way.
You could have recorded metafile incorrectly prior to having this problem, it happens due to a bug in
System.Drawing.Imagine
I came across in .NET 2.0; don't know how about other versions.
See
http://stackoverflow.com/questions/732810/save-metafile-in-c[
^], but take into account: the conclusions of the authors of the answer are incorrect: it is possible to record a meta-file using .NET. I used to solve this problem, but as I need time to find out my solution and as I'm not sure this is your problem, I will wait for your question if you confirm that this is your problem.
—SA