private void ButtonShowReport_Click(object sender, RoutedEventArgs e) { XElement reportData = YellowstonePathology.Business.Gateway.XmlGateway.GetClientBillingDetailReport(this.m_PostDateStart.Value, this.m_PostDateEnd.Value, this.m_ClientGroup.ClientGroupId); YellowstonePathology.Document.ClientBillingDetailReport clientBillingDetailReport = new Document.ClientBillingDetailReport(reportData, this.m_PostDateStart.Value, this.m_PostDateEnd.Value); XpsDocumentViewer viewer = new XpsDocumentViewer(); viewer.LoadDocument(clientBillingDetailReport.FixedDocument); viewer.ShowDialog(); }