コード例 #1
0
        private void GenereerAanvraag_Click(object sender, EventArgs e)
        {
            var  quickLabelData = labelManager.GetRandom();
            Font font           = GetFont();

            label      = new QLabel(quickLabelData);
            label.Font = font;
            quickLabelControl.Label = label;
            var paperSize = PrinterHelper.GetPaperSize(printer, config.Printer);
            var size      = new Size(paperSize.Width, paperSize.Height);

            this.label.Size        = size;
            label.Landscape        = config.Printer.Landscape;
            quickLabelControl.Size = size;
            quickLabelControl.Refresh();
        }