Maintaining Aspect Ratio in Picture Control - InfoPath Dev
in

InfoPath Dev

Maintaining Aspect Ratio in Picture Control

Last post 01-22-2007 12:40 PM by Shiraz Cupala. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-17-2007 09:59 AM

    Maintaining Aspect Ratio in Picture Control

    Is there any way to prevent Infopath from changing the aspect ratio of a bmp in a picture control? For example, if I add a square picture control to my Infopath template which has a size of 320px x 320px, and a customer inserts a rectangular bmp which is 160px x 320px, how do I prevent Infopath from changing the customer's rectangular photo into a square?
  • 01-17-2007 11:25 AM In reply to

    Re: Maintaining Aspect Ratio in Picture Control

    If you only specify one of the values (height or width) then InfoPath will retain the aspect ratio while resizing.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 01-17-2007 01:36 PM In reply to

    Re: Maintaining Aspect Ratio in Picture Control

    That's a great idea! I never thought of that. Thank you, Shiraz.
  • 01-22-2007 12:40 PM In reply to

    Re: Maintaining Aspect Ratio in Picture Control

    You're welcome. Glad to help. Truth be told, we were recently struggling with the same thing on a customer project. We only just figured out this trick a month or so ago. :)
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.