in

InfoPath Dev

Picture Control for browser enabled forms

Last post 04-23-2008 10:11 AM by SkiBum. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-30-2007 12:05 PM

    • GinaK
    • Not Ranked
    • Joined on 09-28-2007
    • Posts 1

    Picture Control for browser enabled forms

    I have a infopath form that I want to be viewable from a web browser. I need to display pictures and also allow users to upload pictures of their own. Picture Control is disabled if I enable the browser-enable option. How can I display an image in infopath form?

     Thanks.

  • 09-30-2007 07:22 PM In reply to

    Re: Picture Control for browser enabled forms

    Browser-enabled forms do not support picture controls so there is no easy way for you to achieve what you are trying to do.

    The best workaround is to use a read-only rich-text control. However, rich text fields do not support embedded images when your form is browser-enabled. Instread they support linked images that have to exist somewhere else. With this in mind, a possible way of enabling custom-uploaded pictures would be this:

    - Introduce a file attachment control where the users will provide the picture
    - On the server, save the picture to some location that is accessible by the browser
    - Delete the file attachment field from the xml and insert the picture's url into the rich text field

    Please be warned that this approach requires a significant amount of work and has multiple drawbacks (such as writing a lot of code and figuring out the storage model).

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 04-23-2008 10:11 AM In reply to

    • SkiBum
    • Not Ranked
    • Joined on 04-23-2008
    • Posts 1

    Re: Picture Control for browser enabled forms

    I'm trying to use a linked image in a rich-text control as a workaround for not having a picture control in web-enabled forms.  I figured that if I can set the default value on a read-only rich text control to point to a linked image then I can display a company logo on a web-enabled form.  Is there a way to enter the reference to a linked image as the default property on a rich text box?  The default value box on the properties dialog is not rich text itself so I can't past the image link into it.

    Filed under: ,
Page 1 of 1 (3 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.