C#(097):微软报表编程
作者:互联网
一、加载报表文件
1、加载本地RDlC文件:
$1```
//或 LocalReport.ReportPath=”test.rdlc” ;
```csharp
$1```
reportViewer1.ServerReport.ReportPath=new Uri(”/Domo/test”);
```csharp
$1```
ReportDataSource reportdataSource =new ReportDataSource (sourerName, ds.Tables[0]);
```csharp
$1```
```csharp
$1```
```csharp
$1```
```csharp
$1```
```csharp
$1```
string miniType,encoding,filenameExt;
stirng[] streams;Waring[] warning;
byte[] bytes=localReport.Render(“PDF”,devinfo,out ..);
File.WriteAllBytes(“file.pdf”,bytes);
或下载
```csharp
Response.clear();
Response.ContentType=mimType;
Response.AddHeader(“Content-Dispoiton”,”attachment;filename=aa.pdf”);
Response.BinaryWirte(data);
六、打印
this.reportViewer1.PrintDialog();
RsClientRrint控件
标签:C#,编程,reportViewer1,ReportDataSource,097,csharp,test,new,Response 来源: https://www.cnblogs.com/springsnow/p/16272416.html