ActiveX control not getting populated.

P

Peter Ghali

I have created an ActiveX control textbox for Infopath using VB6. I created
it following the step-by-step instructions in Andrew Ma's Lab 6 blog,
http://blogs.msdn.com/ajma/articles/213868.aspx

When complete, I was able to insert the control in my Infopath form, but it
doesn't get populated with its bound value when I open a file from disk.
Shouldn't this have worked automatically, or do I need to implement another
interface?
 
P

Peter Ghali

Please disregard. It was a "user" bug.

In case you have a similar problem, here' s what I discovered:

When registering the control with Infopath, you follow a wizard where you
designate the bound field, the enabled property, etc.. The last thing it
asks is what datatype(s) you want to use your control for. For my control, I
selected 'string' initially, but this presented a problem. For some reason,
carriage returns were not persisted in the control. They appeared initially,
but were missing when I reopened the file from disk.

So I had re-registered my control, but used the "field or group (any)"
option. This took care of the carriage return issue, but created the bug that
I indicated below.
 

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