如何只将rdl文件的第一页数据导出为pdf格式 [英] How to export only 1st page data of rdl file to pdf format

查看:98
本文介绍了如何只将rdl文件的第一页数据导出为pdf格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想根据两个条件将rdl文件数据导出到导出文件。

1.Export只有第一页

2.Export完整数据。



我能够导出完整数据但不能只导出第一页数据?

是否可以将第一页数据导出为pdf ??

Hi,

I want to export the rdl file data to export file on the basis of two condition.
1.Export only 1st page
2.Export Full data.

I am able to export the full data but not able to export only 1st page data?
Is it possible to export only 1st page data to pdf??

推荐答案

您需要传递 DeviceInfo 参数中的StartPage 和 EndPage 设置/msdn.microsoft.com/en-us/library/mt228949.aspx\"> Render 方法 [ ^ ]:

You need to pass the StartPage and EndPage settings in the DeviceInfo parameter of the Render method[^]:
string deviceInfo = @"<DeviceInfo>
    <StartPage>1</StartPage>
    <EndPage>1</EndPage>
</DeviceInfo>";

string extension, mimeType, encoding;
Warning[] warnings;
string[] streamIds;

byte[] pdf = yourReport.Render("PDF", deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIds);
...



传递设备渲染扩展程序的信息设置 [ ^ ]

PDF设备信息设置 [ ^ ]


这篇关于如何只将rdl文件的第一页数据导出为pdf格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆