private void PDFPrintProperties_Load(object sender, EventArgs e)
        {
            PdfPrintTest.SetConfigFromIni(_configFile);
            _previewPaperHeight = _configFile.PreviewPageHeight;
            _previewPaperWidth  = _configFile.PreviewPageWidth;
            _watermarkForm      = new WatermarkForm(_watermark, _previewPaperWidth, _previewPaperHeight, _previewImagePath);

            if (PdfPrintTest.Is64)
            {
                // on 64 bit PrinterSettingsDialog isn't available so we hide it...
                btnSetPrinterSettings.Visible = false;
                cbUsePrinterSettings.Visible  = false;
            }
        }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Text += (PdfPrintTest.Is64 ? " 64 bit" : " 32 bit") + " ver. " + Application.ProductVersion;
     PdfPrintTest.SetConfigFromIni(_configFile);
     FillPrinters();
 }