Que faire pour définir le paysage pour une exportation pdf?Report Viewer Paysage pdf export
en utilisant System.Drawing.Printing.PageSettings avant qu'une actualisation ne fonctionne pas.
Type tip = reportViewer1.GetType();
FieldInfo[] pr = tip.GetFields(BindingFlags.Instance | BindingFlags.NonPublic);
System.Drawing.Printing.PageSettings ps = new System.Drawing.Printing.PageSettings();
ps.Landscape = true;
// ps.PaperSource=
foreach (FieldInfo item in pr)
{
if (item.Name == "m_pageSettings")
{
item.SetValue(reportViewer1, ps);
}
}
vérifier ce post: http://stackoverflow.com/questions/25387415/export-rdlc-report-to-pdf-in- mode paysage –