xCollection::insert

S

Steve

I am using the following line of code to insert a row into a repeating table
and the repeating tables xCollection name is Service_Table_160.

thisXDocument.View.ExecuteAction("xCollection::insert", "Service_Table_160")

and get this error, anyone no what my problem is?

The following call in the form's code failed: View.ExecuteAction
Unspecified error

at Microsoft.Office.Interop.InfoPath.SemiTrust.View.ExecuteAction(String
bstrAction, Object varXmlToEdit)
at
Microsoft.Office.Interop.InfoPath.SemiTrust.ViewObjectWrapper.ExecuteAction(String bstrAction, Object varXmlToEdit)
at
Microsoft.Office.Interop.InfoPath.SemiTrust.ViewObjectWrapper.ExecuteAction(String bstrAction, Object varXmlToEdit)
at EService.EService.btnMainWorkPlan_OnClick(DocActionEvent e) in
C:\Documents and Settings\admin\My Documents\Visual Studio
Projects\EService\FormCode.vb:line 240
at
Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
 

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