shiju kv

shiju kv

  • NA
  • 91
  • 15.5k

generate pdf from rdlc report

Mar 4 2015 1:19 AM
i have generated pdf from a rdlc report  by the following code
Warning[] warnings;
string[] streamids;
string mimeType;
string encoding;
string filenameExtension;
byte[] bytes = reportViewer1.LocalReport.Render(
"PDF", null, out mimeType, out encoding, out filenameExtension,
out streamids, out warnings);
using (FileStream fs = new FileStream(@"D:\PrintPage.pdf", FileMode.Create))
{
fs.Write(bytes, 0, bytes.Length);
                  
                                but the pdf is in a full A4 size. i want to generate only in the actual size of rdlc report . what to make for this . how to make page settings for this

Answers (1)