Page 1 of 1

Navigation

Posted: Wed Mar 05, 2014 12:25 pm
by aline
Hi there!

I've builded a small sample to demonstrate the issue I've found.

From a page, you click on a button to show a report, which is on another page (it has only the viewer and a back button).
You clik back and return to the previous page. Then you click again the button to show the report. App crashes with the message

"A method was called at an unexpected time.\r\n\r\nOnly one handler for the PrintTaskRequested event may be registered at a time."

Best regards

Aline

Re: Navigation

Posted: Thu Mar 06, 2014 1:09 pm
by HighAley
Hello.

Sorry, but we couldn't find any sample.

Thank you.

Re: Navigation

Posted: Thu Mar 06, 2014 3:07 pm
by aline
Hi!

Sorry, my mistake!

Here it goes!

Aline

Re: Navigation

Posted: Mon Mar 10, 2014 6:16 am
by HighAley
Hello.

When you click on the back button you should call Dispose() method, then there will be no error.

Code: Select all

reportViewer.Dispose();
Thank you.

Re: Navigation

Posted: Mon Mar 10, 2014 12:44 pm
by aline
Hello Aleksey!

It worked, thank you!

Aline Almeida

Re: Navigation

Posted: Mon Mar 10, 2014 1:39 pm
by HighAley
Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.