コード例 #1
0
 private void UpdateReport()
 {
     var view = new CamerasReportView(this);
     GreateXDocument((FlowDocument) view.Content);
 }
コード例 #2
0
        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);
            }
        }