This is a migrated thread and some comments may be shown as answers.

Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notif

3 Answers 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Napa
Top achievements
Rank 1
Napa asked on 06 Mar 2013, 08:15 PM
Hi,
  I am using report viewr for reports.Reports are working fine in my local,test and QA servers.But when we deployed in production server getting error "
An error has occurred while processing Report 'PrintReport': Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
"

3 Answers, 1 is accepted

Sort by
0
Napa
Top achievements
Rank 1
answered on 06 Mar 2013, 09:07 PM
Error screen attached
0
Peter
Telerik team
answered on 07 Mar 2013, 08:30 AM
Hello Napa,

It seems that you try to invoke a modal dialog on the server. Check out Report printing from web without ReportViewer forum thread that elaborates how to invoke a print operation on the client.

Regards,
Peter
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

0
Napa
Top achievements
Rank 1
answered on 07 Mar 2013, 03:07 PM
This is the code i am using in report.

BCRSeq = (

string)Session["BCRseq"];

 

fiscalYear = (

string)Session["FYear"];

 

reportDocument =

new PrintReport(BCRSeq, fiscalYear);

 

 

this.ReportViewer1.ViewMode = ViewMode.PrintPreview;

 

 

this.ReportViewer1.Report = reportDocument;

 

Tags
General Discussions
Asked by
Napa
Top achievements
Rank 1
Answers by
Napa
Top achievements
Rank 1
Peter
Telerik team
Share this question
or