Results 1 to 2 of 2

Thread: [RESOLVED] IPictureDisp but need to STRETCH image

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    CT
    Posts
    17,882

    Resolved [RESOLVED] IPictureDisp but need to STRETCH image

    I've been using an IPictureDisp object to load JPG images (signatures) so that I can print them on reports (checks and stuff like that).

    Now I want to load a picture of a person - still a .JPG - but I want to shrink it before printing.

    Appears that a PICTUREBOX control (IPictureDisp) won't allow stretch...

    But an IMAGE control will.

    Is there a way to do this without actually creating an IMAGE control on a form?

    I tried: Dim imgOut as Image - but that isn't working well.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    CT
    Posts
    17,882

    Re: [RESOLVED] IPictureDisp but need to STRETCH image

    I realized that the PAINTPICTURE method used to put the picture onto the printer could re-size images - so my problem went away.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

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