
Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Anyone else want to jump in here?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
How can you control the picture that they can insert without showing it as
the default image?
The reason for the button is to add a UI message before inserting the image.
How can I do this?
-TFTH
Bryan
The Picture control has this functionality built right into it. When you
have a Picutre control in your view, the form user clicks on that, and it
allows them to select a picture. That picture is then inserted.
If you want multiple pictures, makre sure your Picture control is in a
Repeating Group.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
"Bryan Hughes" <bthishughesis@brigidnotcollinsreal.org> wrote in message
news:u0e2cSKhEHA.1344@TK2MSFTNGP11.phx.gbl...
Hello,
How would I program a button to insert a specific picture into a field?
Example: User has a digital image of their personal signature. After
completing the form, they can add this image to a field by clicking a
button.
-TFTH
Bryan
Matthew Blain \(Serriform\) - 18 Aug 2004 22:06 GMT
What's the source of the image you want to insert?
Anyone else want to jump in here?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
How can you control the picture that they can insert without showing it as
the default image?
The reason for the button is to add a UI message before inserting the image.
How can I do this?
-TFTH
Bryan
"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
news:enDDeBUhEHA.2544@TK2MSFTNGP10.phx.gbl...
The Picture control has this functionality built right into it. When you
have a Picutre control in your view, the form user clicks on that, and it
allows them to select a picture. That picture is then inserted.
If you want multiple pictures, makre sure your Picture control is in a
Repeating Group.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Hello,
How would I program a button to insert a specific picture into a field?
Example: User has a digital image of their personal signature. After
completing the form, they can add this image to a field by clicking a
button.
-TFTH
Bryan
Bryan Hughes - 19 Aug 2004 00:13 GMT
My local file server
-TFTH
Bryan
"Matthew Blain (Serriform)" <matthewblain@nospam.serriform.com> wrote in
message news:%23t$kYeWhEHA.3988@tk2msftngp13.phx.gbl...
> What's the source of the image you want to insert?
>
[quoted text clipped - 27 lines]
> -TFTH
> Bryan
Matthew Blain \(Serriform\) - 19 Aug 2004 05:30 GMT
Just as Brian mentions elsewhere on this thread, you'll need to write code
to do this. If your server is an HTTP server, you can use XMLHTTP (I'm
assuming you're using script) to GET the data, then use a nodetypedvalue to
base64 encoded the data and copy it into the InfoPath form. With the .NET
framework, use the WebClient and Convert.ToBase64String.
--Matthew Blain
http://tips.serriform.com/
> My local file server
>
[quoted text clipped - 34 lines]
> > -TFTH
> > Bryan
Brian Teutsch [MSFT] - 18 Aug 2004 22:16 GMT
If all you want is a UI warning, use Rules (or the OM) to show an Alert when
that field changes.
If you need to do more things (like verifying the image), you can turn off
user's ability to insert images while you're designing a form. Then, your
code will have to cover all the file browsing (req. trusted form), Base64
encoding and DOM insertion.
Brian
Anyone else want to jump in here?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
How can you control the picture that they can insert without showing it as
the default image?
The reason for the button is to add a UI message before inserting the image.
How can I do this?
-TFTH
Bryan
"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
news:enDDeBUhEHA.2544@TK2MSFTNGP10.phx.gbl...
The Picture control has this functionality built right into it. When you
have a Picutre control in your view, the form user clicks on that, and it
allows them to select a picture. That picture is then inserted.
If you want multiple pictures, makre sure your Picture control is in a
Repeating Group.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Hello,
How would I program a button to insert a specific picture into a field?
Example: User has a digital image of their personal signature. After
completing the form, they can add this image to a field by clicking a
button.
-TFTH
Bryan
Bryan Hughes - 19 Aug 2004 00:15 GMT
Brian,
I want the user to only be able to insert a specfic image.
> If all you want is a UI warning, use Rules (or the OM) to show an Alert when
> that field changes.
[quoted text clipped - 35 lines]
> -TFTH
> Bryan
Brian Teutsch [MSFT] - 19 Aug 2004 01:09 GMT
Then it's the method I described below. If you put your file server on the
same domain as your form, you might be able to avoid trusted form
requirements. But there's definitely some code to go and fetch the image and
encode it via Base64.
Brian
> Brian,
>
[quoted text clipped - 43 lines]
>> -TFTH
>> Bryan