Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
generate pdf from rdlc report
shiju kv
Mar 4 2015 1:19 AM
531
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to close the main form without letting the application c
How to call control inside GridView