Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2005

Tip: Looking for answers? Try searching our database.

ActiveX control not getting populated.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Ghali - 11 Nov 2005 13:33 GMT
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?
Peter Ghali - 14 Nov 2005 15:01 GMT
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.

> 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,
[quoted text clipped - 4 lines]
> Shouldn't this have worked automatically, or do I need to implement another
> interface?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.