private void cmdPreview_Click(object sender, RoutedEventArgs e)
        {
            String group = "grpDrNote";

            if (dt == AccountDocumentType.AcctDocCrNote)
            {
                group = "grpCrNote";
            }

            WinFormPrinting w = new WinFormPrinting(group, vw);

            w.ShowDialog();
        }
        private void cmdPreview_Click(object sender, RoutedEventArgs e)
        {
            String group = "grpPurchaseMiscInvoice";

            if (dt == AccountDocumentType.AcctDocMiscRevenue)
            {
                group = "grpSaleMiscInvoice";
            }

            vw.ConstructWhDefinitionFromDocItem();
            WinFormPrinting w = new WinFormPrinting(group, vw);

            w.ShowDialog();
        }