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);
...
Passing Device Information Settings to Rendering Extensions[
^]
PDF Device Information Settings[
^]