private void PrintPreview()
        {
            var dialog = new System.Windows.Forms.PrintPreviewDialog();

            dialog.Document = GeneratePrintDocuemnt(CurrentForm, new System.Windows.Forms.PrintDialog().PrinterSettings, true);
            dialog.Show();
        }