private void ShowPDFOrderReport() { SalesOrderReportData salesOrderReportData = new SalesOrderReportData { MyCompany = Globals.CoreData.MyCompany, SalesOrder = SelectedSalesOrder, User = SelectedSalesOrder.User }; SalesReportPDFCreator.CreateAndShowOrderReport(salesOrderReportData, false); }
public static void CreateOrderReport(SalesOrderReportData salesOrderReportData, bool IsPreview) { List <SalesOrderReportData> listReportData = new List <SalesOrderReportData> { salesOrderReportData }; _SalesOrderReport = new SalesOrderReport { DataSource = listReportData }; if (IsPreview) { _SalesOrderReport.Watermark.Text = "VORSCHAU"; _SalesOrderReport.Watermark.TextDirection = DirectionMode.ForwardDiagonal; _SalesOrderReport.Watermark.Font = new Font(_SalesOrderReport.Watermark.Font.FontFamily, 40); _SalesOrderReport.Watermark.ForeColor = Color.DodgerBlue; _SalesOrderReport.Watermark.TextTransparency = 150; _SalesOrderReport.Watermark.ShowBehind = false; } _SalesOrderReport.CreateDocument(); }
public static void CreateAndShowOrderReport(SalesOrderReportData salesOrderReportData, bool IsPreview) { CreateOrderReport(salesOrderReportData, IsPreview); ShowOrderReport(); }