-
I'm wondering if there is any way to convert a wmf file to a gif or jpg or bmp etc...
my boss wants to have wmf files input into an sql server database (I have that part working) but now he says he can't get the wmf files to display in crystal (I've never used crystal so I wouldn't know). so now he wants me to convert the wmf file to a gif, jpg or something before copying it into the database. Does anyone have any ideas. Is there a way for crystal to display a wmf file?
Thanx in advance.
-
Try a Batch Conversion Utility. They come with some picture editors, like Paint Shop Pro.
-
Well converting it to a BMP is pretty simple just load the WMF into a PictureBox and then use SavePicture to save it. You have to save the Image though, because SavePicture always saves in the same format as the picture have.
Picture1 = LoadPicture("c:\MyPic.wmf")
SavePicture Picture1.Image, "c:\MyNewPic.bmp"
Good luck!
-
I tried Crystal Reports, and it works fine for a WMF file for me. What version do you have?
-
ok.. i've got it converting to a bmp but....
wmf file = 3KB
bmp file = 2,032 KB
this is nuts is there anyway to make it smaller...
I've tried resizing the picturebox but that makes the picture so blurred that I can't read it... any ideas?
-
I don't think resizing the picture box is going to do anything. Try converting it to a .jpeg. I think they are more compact than a .bmp.
-
They're a lot more compact. Nathan, what are you trying to do with the WMF in Crystal Reports? Are you just trying to insert it as an image?
-
Here is what i'm trying to do I'm adding wmf files to an SQL Server database Image field. My boss then wants to be able to display them in reports. He's using the latest version of crystal. could it be a problem with the type of field in the sql server database?
-
Nathan: I just e-mailed you a DLL file that can convert a BMP to JPG. Just use it after you converted the WMF to BMP.
Best regards