Files
BeWoPlaner/BeWo/Core/ReportPreviewModelLandscapeBugWorkaround.cs

26 lines
777 B
C#
Raw Permalink Normal View History

2016-06-27 01:45:38 +02:00
using DevExpress.Xpf.Printing;
using DevExpress.XtraReports.UI;
namespace BeWo.Core
{
public class ReportPreviewModelLandscapeBugWorkaround : XtraReportPreviewModel
{
public ReportPreviewModelLandscapeBugWorkaround(XtraReport report) : base(report) { }
protected override void Print(object parameter)
{
using (var printTool = new DevExpress.XtraPrinting.PrintTool(PrintingSystem))
{
printTool.PrintDialog();
}
}
protected override void PrintDirect(object parameter)
{
using (var printTool = new DevExpress.XtraPrinting.PrintTool(PrintingSystem))
{
printTool.Print();
}
}
}
}