/// <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(); }
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(); }