Set image location dynamically at runtime

S

swordsman

I want to have a picture in my infopath form whose target I set dynamically at runtime.

I need to construct a url target for the image based on data in the form, and print this (barcode) image when the user clicks print. An example would be
<img src="http://server/barcode.asp?param1=AAA&param2=BBB">

where the param1 and param2 values aren't known until the user fills out the form.

I tried a couple ways with their picture control but no luck! Any ideas on this one?

TIA
 
S

swordsman

Thanks for the tip Greg! So the href/target must be set at declaratively, at design time. This will be a little involved since some of the forms have 20+ params - but not the end of the world.

One final question: is there a method similar to concat that I can use to url-encode the params?

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top