Results 1 to 9 of 9

Thread: Convert WMF File?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    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.

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Posts
    122
    Try a Batch Conversion Utility. They come with some picture editors, like Paint Shop Pro.

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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!

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    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?

  6. #6
    Lively Member
    Join Date
    Jun 2000
    Posts
    122
    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.

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    188
    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?

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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
  •  



Click Here to Expand Forum to Full Width