FileStream.Write Only particular pages of Report as PDF?
-
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:thumbsup: My Codes
byte[] Bytes = Reportviewer1.LocalReport.Render(format:"PDF",deviceInfo:"");
using (FileStream stream = new FileStream("C:\MyFolder", FileMode.Create))
{
stream.Write(Bytes, 0, Bytes.Length);
} -
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:thumbsup: My Codes
byte[] Bytes = Reportviewer1.LocalReport.Render(format:"PDF",deviceInfo:"");
using (FileStream stream = new FileStream("C:\MyFolder", FileMode.Create))
{
stream.Write(Bytes, 0, Bytes.Length);
}You've been here six and a half years - that's certainly long enough to know that posting the same question three times is not going to make people rush to help you. :suss: How to save the reportviewer particular contents of report as PDF?[^] How to save the reportviewer particular contents of report as PDF?[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer