Submit E-mail using C#

M

mbussa

I'm using IP2k3 SP1 and am writing custom C# submit code. I have
created a Submit Data Connection that submits via e-mail called "Email
Approved" and would like to call this from within Managed Code.

I have tried the following C# statements:

DAVAdapter submit = (DAVAdapter) thisXDocument.DataAdapters["Email
Approved"];
submit.Submit();

This compiles in VS2k3 but when running the form in IP, I get the
following error:
System.InvalidCastException
Specified cast is not valid.

Can anyone tell me why it can't cast to a DAVAdapter and how I could
get around this or am I even using this correctly?

Thanks, in advance, for your help!
 

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