When I export a report and set PageOrientation to Landscape
it export in Portrait orientation
There was an issue a while back - see this thread - but that has since been addressed.
Not the same problem!
I can print in landscape
but when I export the report it don't turn the page
Then please provide a sample that demonstrates the problem.
---- This don't work ---
Private Sub btnExport_Click(ByVal sender As System.Object, ByVal e As
System.Windows.RoutedEventArgs)
Dim saveDlg As SaveFileDialog = New
SaveFileDialog()
saveDlg.Filter =
"XPS documents|*.xps"
If (Not saveDlg.ShowDialog().GetValueOrDefault())
Then
Return
End
If
'// 1. Create Report object
Dim reportObj As Report = New
Report()
'// 2. Create EmbeddedVisualReportSection section.
'// Put the visual you want to print as a parameter of section's constructor
Dim section As EmbeddedVisualReportSection = New
EmbeddedVisualReportSection(Plan)
'// 3. Add created section to report's section collection
reportObj.Sections.Add(section)
reportObj.ReportSettings.PageOrientation = PageOrientation.Landscape
'// 4. Call Export method and put the file name you want to create
reportObj.Export(OutputFormat.XPS, saveDlg.FileName)
Sub
--- This Works ---
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
reportObj.Print(
True, False
)
I am encountering this exact same problem when trying to export to XPS. Despite setting the page orientation to Landscape, it still saves it in portrait.
I also find that printing works fine, it is just export.
Is there any fix for this.
This problem seems to be back in v10.3
Many thanks for letting me know, I'd missed that there was a service release for 2009_2 already :)
after updateing to version 20092_SR_2001
the problem was solved.