Pdf vykres

This commit is contained in:
Culak-HP\Culak
2020-10-21 16:48:26 +02:00
parent 06bde98877
commit 31323587ee
17 changed files with 346923 additions and 61 deletions

View File

@@ -28,6 +28,10 @@
/// </summary>
private void InitializeComponent()
{
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPridatVyrobok));
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.textBox7 = new System.Windows.Forms.TextBox();
@@ -49,6 +53,7 @@
this.btnAddVykres = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panel1 = new System.Windows.Forms.Panel();
this.pdfDocumentView1 = new Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.btnVymazVykres = new System.Windows.Forms.Button();
@@ -315,12 +320,49 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.pdfDocumentView1);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Location = new System.Drawing.Point(4, 17);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(909, 398);
this.panel1.TabIndex = 9;
//
// pdfDocumentView1
//
this.pdfDocumentView1.AutoScroll = true;
this.pdfDocumentView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(237)))), ((int)(((byte)(237)))));
this.pdfDocumentView1.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool;
this.pdfDocumentView1.EnableContextMenu = true;
this.pdfDocumentView1.HorizontalScrollOffset = 0;
this.pdfDocumentView1.IsTextSearchEnabled = true;
this.pdfDocumentView1.IsTextSelectionEnabled = true;
this.pdfDocumentView1.Location = new System.Drawing.Point(36, 3);
messageBoxSettings1.EnableNotification = true;
this.pdfDocumentView1.MessageBoxSettings = messageBoxSettings1;
this.pdfDocumentView1.MinimumZoomPercentage = 50;
this.pdfDocumentView1.Name = "pdfDocumentView1";
this.pdfDocumentView1.PageBorderThickness = 1;
pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation")));
pdfViewerPrinterSettings1.ShowPrintStatusDialog = true;
this.pdfDocumentView1.PrinterSettings = pdfViewerPrinterSettings1;
this.pdfDocumentView1.ReferencePath = null;
this.pdfDocumentView1.ScrollDisplacementValue = 0;
this.pdfDocumentView1.ShowHorizontalScrollBar = true;
this.pdfDocumentView1.ShowVerticalScrollBar = true;
this.pdfDocumentView1.Size = new System.Drawing.Size(150, 150);
this.pdfDocumentView1.SpaceBetweenPages = 8;
this.pdfDocumentView1.TabIndex = 10;
textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings1.HighlightAllInstance = true;
textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfDocumentView1.TextSearchSettings = textSearchSettings1;
this.pdfDocumentView1.ThemeName = "Default";
this.pdfDocumentView1.VerticalScrollOffset = 0;
this.pdfDocumentView1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
this.pdfDocumentView1.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.FitPage;
//
// pictureBox1
//
this.pictureBox1.ErrorImage = global::Mip.Properties.Resources.error;
@@ -518,6 +560,7 @@
//
// radioButton1
//
this.radioButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.radioButton1.AutoSize = true;
this.radioButton1.Checked = true;
this.radioButton1.Location = new System.Drawing.Point(837, 12);
@@ -530,6 +573,7 @@
//
// radioButton2
//
this.radioButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.radioButton2.AutoSize = true;
this.radioButton2.Location = new System.Drawing.Point(837, 35);
this.radioButton2.Name = "radioButton2";
@@ -620,5 +664,6 @@
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView pdfDocumentView1;
}
}