Results 1 to 5 of 5
  1. #1
    rmm1 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3

    Flip image in report

    I would like a form or a report to display images - the images are loaded from a folder based on the current record

    One of those images need to be flipped vertically and another one has to be rotated 90 degrees.

    Is there a control out there that will do this for me.

    Or is there some simple code that will do this as the image is being loaded.

    Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    So the image control doesn't automatically adjust for the image dimensions?

    Couple ways this might be done with code.

    One would require setting the dimensions and position properties of the image control. The unit of measure for some is twips (1 inch = 1440 twips). Example:
    Me.boxMask.Height = 10710 'twips
    Me.boxMask.Top = 4320 'twips
    Me.tbxBox1.Left = 0.25 'not twips
    Me.tbxBox1.Width = 11520 'twips

    Another would mean having two image controls bound to the same data and setting visibility.

    Some criteria would be needed to determine which orientation is appropriate.

    For a report, both options would be coded in the Format event of whatever section the controls are in. On a form, code in form Open event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    rmm1 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3
    Thanks,
    But I wanted the image to be automatically flipped vertically (OR rotated through 90 degrees) when comes into the IMAGE control.

    I may be wrong but the code you outlined is for resizing and positioning only isn't it?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Okay, my misunderstanding. Not sure can do that with Access. Why not edit the image with an image editor (like Paint) to rotate and save it with the desired orientation? Check this thread http://bytes.com/topic/access/answer...rotating-image
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    rmm1 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3
    Pity I thought maybe they would have made this an option by Access 2010.

    I found a control called DBPix which can do this with some code - but I am waiting for them to email back and tell me if I can do this with code (pref a sample code) or HOPEFULLY a property in the control.

    I used to have a control that worked with ACCESS 97 but now that I am running WIN 64-bit the API doesn't work/register anymore. So back to square one.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 10-10-2011, 10:58 AM
  2. Assigning value to an image
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-16-2011, 12:05 PM
  3. Image help?
    By ndynamo in forum Reports
    Replies: 1
    Last Post: 01-12-2011, 04:42 PM
  4. Image in a Report
    By Kapelluschsa in forum Reports
    Replies: 3
    Last Post: 10-27-2010, 09:01 AM
  5. print report on paper for image
    By gromit95 in forum Reports
    Replies: 11
    Last Post: 01-12-2010, 08:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums