Beispiel #1
0
        private async void actgrdPreview(object sender, RoutedEventArgs e)
        {
            tblDocumentCommon xDoc = FViewDataContext.CurrentDocument; //(tblDocumentCommon)((Button)sender).Tag;
            await FViewDataContext.SaveAllCangesAsync();

            ReportPreview xReportPreview = new ReportPreview();
            //xReportPreview.Owner = this;
            ReportClass xReport = PrintContext.Instance.GetReport(xDoc);

            try
            {
                xReportPreview.SetReport(xReport);
                xReportPreview.Show();
            }
            finally
            {
                // xReport.Dispose();
            }
        }