如何解决“在这种情况下在Web上下文中不合适".错误 [英] How to solve "In this method is inappropriate in the web context" error
问题描述
我的要求是asp.net中的最终用户报表设计器
步骤:
我正在将devexpress dll添加到Web应用程序中.
之后,我要添加Xtrareport1类.它是从xtrareport派生到解决方案中的,在该类中,我正在设计标签控件并将数据集dataadpter分配给xtrareport1.
之后,在default.aspx页面中,我是addig divexpress reportviewer.
在下面的default.aspx.cs页中,编写了代码
My requirement is end user report designer in asp.net
Steps:
I am adding devexpress dlls into web application.
After that i am adding Xtrareport1 class. It is derivied from xtrareport into the solution, In that class i am designing label controls and assign the dataset , dataadpter to the xtrareport1.
After that In default.aspx page , I am addig divexpress reportviewer.
In this default.aspx.cs page below code is written
XtraReport1 report=new XtraReport1();
reportviewer1.Report=report;
report.ShowDesigner(); ----------- In this method sending exception i.e, In this method is inappropriate in the web context.
如何解决此错误.请尽快发送答复.
谢谢
Padmavathi.
How to solve this error.Please send reply as soon as possible .
Thank you,
Padmavathi.
推荐答案
根据此链接,您不能将此功能用于Web应用程序,因为它仅支持WindowsForms:
http://documentation.devexpress.com/#XtraReports/CustomDocument1198 [
According to this link, you can''t use this feature for a web application since it only supports WindowsForms:
http://documentation.devexpress.com/#XtraReports/CustomDocument1198[^]
这篇关于如何解决“在这种情况下在Web上下文中不合适".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!