Printing landscape/portrait in rdlc without preview
问题 I am trying to print a local report in either landscape or portrait. private void Export(LocalReport report) { Warning[] warnings; m_streams = new List<Stream>(); var deviceInfo = new StringBuilder(); deviceInfo.AppendLine("<DeviceInfo>"); deviceInfo.AppendLine("<OutputFormat>EMF</OutputFormat>"); //"11.7in", "8.3in" deviceInfo.AppendLine("<PageWidth>11.7in</PageWidth>"); deviceInfo.AppendLine("<PageHeight>8.3in</PageHeight>"); deviceInfo.AppendLine("</DeviceInfo>"); report.Render("Image",