Exemple #1
0
        /// <summary>
        /// Test Printing
        /// </summary>
        /// <param name="description"></param>
        public void PrintingDocumentTest(string description = "Printing document")
        {
            PrintDialog pd = new PrintDialog {
                PrintQueue = PrintQueue
            };

            ExampleForm exampleForm = new ExampleForm();

            AddedTicketforDocument(exampleForm, exampleForm.UIGrid);

            pd.PrintDocument(Document.DocumentPaginator, description);
            CleaningDocument();
        }
Exemple #2
0
        public void PrintingDocumentTest(int countpages, string description = "Printing document")
        {
            PrintDialog pd = new PrintDialog
            {
                PrintQueue = PrintQueue
            };

            ExampleForm exampleForm;

            for (int i = 0; i < countpages; i++)
            {
                exampleForm = new ExampleForm();
                AddedTicketforDocument(exampleForm, exampleForm.UIGrid);
            }

            pd.PrintDocument(Document.DocumentPaginator, description);
            CleaningDocument();
        }