Print button on viewer
Print button on viewer
Hi:
I am trying to display a report in the browser.
I am using the following code:
StiReport report = new StiReport();
report.Load(@"C:\\Reports\\samplereport.mrt");
report.RenderWithWpf(true);
RptViewer.Report = report;
When I try to use the report viewer Print button; I get the following error message
InvalidOperationException was unhandled
"Cannot change MainWindow in a browser-hosted application."
Also, the Close button performs no action!
I am trying to display a report in the browser.
I am using the following code:
StiReport report = new StiReport();
report.Load(@"C:\\Reports\\samplereport.mrt");
report.RenderWithWpf(true);
RptViewer.Report = report;
When I try to use the report viewer Print button; I get the following error message
InvalidOperationException was unhandled
"Cannot change MainWindow in a browser-hosted application."
Also, the Close button performs no action!
- Attachments
-
- 1807.Stimulsoft-print error.jpg (33.78 KiB) Viewed 4794 times
Print button on viewer
Hello.
If yes then send us your project for analysis.
Thank you.
Did you set "Full trast application" mode?rbajaj wrote:I am trying to display a report in the browser.
I am using the following code:
StiReport report = new StiReport();
report.Load(@"C:\\Reports\\samplereport.mrt");
report.RenderWithWpf(true);
RptViewer.Report = report;
When I try to use the report viewer Print button; I get the following error message
InvalidOperationException was unhandled
"Cannot change MainWindow in a browser-hosted application."
Also, the Close button performs no action!
If yes then send us your project for analysis.
Thank you.
Print button on viewer
Yes, I am running in full trust mode.
- Attachments
-
- 1815.trust level.jpg (50.05 KiB) Viewed 4775 times
-
- Posts: 135
- Joined: Tue Aug 11, 2009 9:38 am
Print button on viewer
Hello,
Can you please send us a simple test application, which reproduce the issue?
Thank you.
Can you please send us a simple test application, which reproduce the issue?
Thank you.
Print button on viewer
Hello:
I just created a test application which works fine! So I need to dig in deeper into our app. to see what's going on.
Thanks for your response.
I just created a test application which works fine! So I need to dig in deeper into our app. to see what's going on.
Thanks for your response.
Print button on viewer
Hello,
Ok.
Let us know if you need any additional help.
Thank you.
Ok.
Let us know if you need any additional help.
Thank you.
Print button on viewer
Hello:
This error happens in a browser hosted application. I had previously created a standalone application in which the Print seemed to work correctly.
I am attaching a sample solution to reproduce this error
This error happens in a browser hosted application. I had previously created a standalone application in which the Print seemed to work correctly.
I am attaching a sample solution to reproduce this error
- Attachments
-
- 1939.WpfBrowserApplication1.zip
- (98.04 KiB) Downloaded 300 times
-
- 1933.Print Error.zip
- (16.23 KiB) Downloaded 237 times
Print button on viewer
Hello,
Please check your attachment. It is contains only .sln file.
Thank you.
Please check your attachment. It is contains only .sln file.
Thank you.
Print button on viewer
Oops! sorry about that. I uploaded another zip file. The report is in the original zip file.
-
- Posts: 135
- Joined: Tue Aug 11, 2009 9:38 am
Print button on viewer
Hello,
The problem is fixed. The patch is available in prerelease build of on 21 June 2012.
Thank you.
The problem is fixed. The patch is available in prerelease build of on 21 June 2012.
Thank you.