Navigation

Stimulsoft Reports.UWP discussion
Locked
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Navigation

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Navigation

Post by HighAley »

Hello.

Sorry, but we couldn't find any sample.

Thank you.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: Navigation

Post by aline »

Hi!

Sorry, my mistake!

Here it goes!

Aline
Attachments
STNavigate.zip
(10.84 MiB) Downloaded 344 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Navigation

Post 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.
aline
Posts: 26
Joined: Tue Feb 25, 2014 2:26 pm

Re: Navigation

Post by aline »

Hello Aleksey!

It worked, thank you!

Aline Almeida
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Navigation

Post by HighAley »

Hello.

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

Thank you.
Locked