Arul Jesuraj

Arul Jesuraj

  • 1.6k
  • 109
  • 22.7k

Set printer pageSize dynamically when export RDLC to PDF?

Jun 20 2014 5:08 AM
Hi,
I've some RDLC's which are of different pageSizes like Letter, A4, some custom sizes also.
For printing these RDLC reports, I convert them to PDF and from PDF, I print them.
 
1. How can I set printer orientation & pageSize automatically based on PDF size when printed from PDF?
Ex: if PDF is of A4, then orientation is portrait and pagesize is A4.
if PDF is 6X4, then orientation is landscape and pagesize is whichever comes nearer to the PDF size.
 
2. Is there any way to print them directly? When I click print button on my page, directly print preview comes.