Problem with Close function when called from task Pane

G

Gaurav Bhardwaj

Hi,

I get an error message when I try to close the form by calling
ActiveWindow.Close(false) function in C# code form task pane. This happens
only when my form is full trusted and digitally signed.

I have written the following function in the code behind Dll (in C#)

public void Exit()
{
thisApplication.ActiveWindow.Close(false);
}

I am calling this function from a button on my task pane:-
gobjXDocument.Extension.Exit()

My form is a digitally signed full trusted form. When I click on the button
on my task pane the form exits with the following error message
Error : Could not complete the operation due to error 80131530.

I want to provide an option on task pane for close the InfoPath form. Can
someone please help me out?

Thanks,
Gaurav
 

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