|
-
Aug 24th, 2000, 02:39 PM
#1
Thread Starter
Addicted Member
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.
-
Aug 24th, 2000, 03:32 PM
#2
Lively Member
Try a Batch Conversion Utility. They come with some picture editors, like Paint Shop Pro.
-
Aug 24th, 2000, 03:32 PM
#3
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!
-
Aug 24th, 2000, 03:34 PM
#4
Monday Morning Lunatic
I tried Crystal Reports, and it works fine for a WMF file for me. What version do you have?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 24th, 2000, 03:37 PM
#5
Thread Starter
Addicted Member
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?
-
Aug 24th, 2000, 03:46 PM
#6
Lively Member
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.
-
Aug 24th, 2000, 03:49 PM
#7
Monday Morning Lunatic
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?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 24th, 2000, 03:58 PM
#8
Thread Starter
Addicted Member
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?
-
Aug 25th, 2000, 02:38 AM
#9
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|