How can I get the report to print in landscape?
I changed the width to 11inches, but all it does now is shrink the page to fit a portrait a4...
Its a vb.net console app.
Here is what I tried:
vb Code:
' Export the given report as an EMF (Enhanced Metafile) file. Private Sub Export(ByVal report As LocalReport) Dim deviceInfo As String = "<DeviceInfo>" & _ "<OutputFormat>EMF</OutputFormat>" & _ "<Orientation>Landscape</Orientation>" & _ "<PageWidth>11in</PageWidth>" & _ "<PageHeight>8.5in</PageHeight>" & _ "<MarginTop>0.25in</MarginTop>" & _ "<MarginLeft>0.25in</MarginLeft>" & _ "<MarginRight>0.25in</MarginRight>" & _ "<MarginBottom>0.25in</MarginBottom>" & _ "</DeviceInfo>" Dim warnings As Warning() m_streams = New List(Of Stream)() report.Render("Image", deviceInfo, AddressOf CreateStream, warnings) For Each stream As Stream In m_streams stream.Position = 0 Next End Sub




Reply With Quote
