hytos / ID2.Manager / ID2.Manager.Compare / Controls / PDFViewer.cs.bak @ 954de090
이력 | 보기 | 이력해설 | 다운로드 (2.06 KB)
1 | 13a36357 | humkyung | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.ComponentModel; |
||
4 | using System.Data; |
||
5 | using System.Drawing; |
||
6 | using System.Linq; |
||
7 | using System.Text; |
||
8 | using System.Threading.Tasks; |
||
9 | using System.Windows.Forms; |
||
10 | |||
11 | namespace ID2.Manager.Controls |
||
12 | { |
||
13 | public partial class PDFViewer : UserControl |
||
14 | { |
||
15 | private Telerik.WinControls.UI.RadPdfViewer radPdfViewerDWG; |
||
16 | |||
17 | public PDFViewer() |
||
18 | { |
||
19 | InitializeComponent(); |
||
20 | } |
||
21 | |||
22 | private void InitializeComponent() |
||
23 | { |
||
24 | this.radPdfViewerDWG = new Telerik.WinControls.UI.RadPdfViewer(); |
||
25 | ((System.ComponentModel.ISupportInitialize)(this.radPdfViewerDWG)).BeginInit(); |
||
26 | this.SuspendLayout(); |
||
27 | // |
||
28 | // radPdfViewerDWG |
||
29 | // |
||
30 | this.radPdfViewerDWG.AutoScroll = true; |
||
31 | this.radPdfViewerDWG.Dock = System.Windows.Forms.DockStyle.Fill; |
||
32 | this.radPdfViewerDWG.EnableThumbnails = false; |
||
33 | this.radPdfViewerDWG.FitToWidth = true; |
||
34 | this.radPdfViewerDWG.Location = new System.Drawing.Point(0, 0); |
||
35 | this.radPdfViewerDWG.Name = "radPdfViewerDWG"; |
||
36 | this.radPdfViewerDWG.Size = new System.Drawing.Size(315, 290); |
||
37 | this.radPdfViewerDWG.TabIndex = 0; |
||
38 | this.radPdfViewerDWG.ThumbnailsScaleFactor = 0.15F; |
||
39 | // |
||
40 | // PDFViewer |
||
41 | // |
||
42 | this.Controls.Add(this.radPdfViewerDWG); |
||
43 | this.Name = "PDFViewer"; |
||
44 | this.Size = new System.Drawing.Size(315, 290); |
||
45 | ((System.ComponentModel.ISupportInitialize)(this.radPdfViewerDWG)).EndInit(); |
||
46 | this.ResumeLayout(false); |
||
47 | |||
48 | } |
||
49 | |||
50 | /// <summary> |
||
51 | /// pdf 파일을 읽어 화면에 표시합니다. |
||
52 | /// </summary> |
||
53 | /// <param name="PDFFilePath"></param> |
||
54 | public void ReadPDF(string PDFFilePath) |
||
55 | { |
||
56 | if (System.IO.File.Exists(PDFFilePath)) |
||
57 | { |
||
58 | this.radPdfViewerDWG.LoadDocument(PDFFilePath); |
||
59 | this.radPdfViewerDWG.Visible = true; |
||
60 | } |
||
61 | } |
||
62 | } |
||
63 | } |