public void Print()
{
if (!AllPages)
if (PageSelectionFrom > 1 | pageSelectionUntil < Maximum)
GenerateFixedDocument(true);
printqueue.Refresh();
if (printqueue.IsNotAvailable)
return;
System.Printing.ValidationResult result = printqueue.MergeAndValidatePrintTicket(printqueue.DefaultPrintTicket, ticket);
PrintDialog dlg = new PrintDialog();
dlg.PrintTicket = result.ValidatedPrintTicket;
dlg.PrintQueue = printqueue;
dlg.PrintDocument(PrintDocument.DocumentPaginator, Configuration.Bericht);
}