Click here to Skip to main content
15,896,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
Iam using VS-2010. Windows Applications. The below codes to save the report as PDF in c#...But I wish to save the particular part of report as PDF...

Note:
Suppose My report contains 4-Copies with 8 pages, my intention is to save only the
"Transporter Copy" as mentioned in Report Header area.
Is it possible to save only the particular copy of reportviewer's report...?

Thanks

My Codes
C#
byte[] Bytes = Reportviewer1.LocalReport.Render(format:"PDF",deviceInfo:""); 
using (FileStream stream = new FileStream("C:\MyFolder", FileMode.Create)) 
{
 stream.Write(Bytes, 0, Bytes.Length); 
}
Posted
Comments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900