private void UpdateReport() { var view = new CamerasReportView(this); GreateXDocument((FlowDocument) view.Content); }
private void SaveToXps() { var dialog = new SaveFileDialog { CheckPathExists = true, Filter = "xps files (*.xps)|*.xps", RestoreDirectory = true }; dialog.FileName = WData.WeighTime.ToString("dd-MM-yyyy_HH:mm:ss"); if ((bool) dialog.ShowDialog()) { var view = new CamerasReportView(this); SaveXpsDocument(dialog.FileName, (FlowDocument)view.Content); } }