您的位置:首页 > 其它

Devexpress Report Service 使用方法

2015-08-07 15:55 465 查看
这个工具就不用多说了,反正功能强大。
主要记录工作中遇到的问题解决方式,不在于宣传、传播!
在服务器端添加 Dev Report Service ,然后建立报表,这里不多说。
<add name="xpf.printing" connectionString="xpoprovider=MSSqlServer;data source=(localdb)\v11.0;Initial Catalog=D:\test.MDF;integrated security=True;connect timeout=120" />
连接字符串要改下

SL中客户端 调用代码如下:

void DevReportControl_Loaded(object sender, RoutedEventArgs e)
{
var mode = new ReportServicePreviewModel("../../StockReportService.svc"); //这个服务器的SVC地址
mode.ReportName = "LightSwitchApplication.StockListReport";//报表的全名称
this.documentViewer1.Model = mode;
documentViewer1.AutoCreateDocument = true;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: