private void InicPDFVIEWER() { pdf = new PdfViewer(); pdf.Visible = true; this.Controls.Add(pdf); pdf.Dock = DockStyle.Fill; pdf.ZoomMode = PdfViewerZoomMode.FitWidth; }
public VistasPrevias() { InitializeComponent(); this.Height = 700; this.Location = new Point(0, 0); pdf = new PdfViewer(); pdf.Visible = true; this.Controls.Add(pdf); pdf.Width = this.Width - 30; pdf.AutoScroll = true; pdf.Height = this.Height - 40; pdf.ZoomMode = PdfViewerZoomMode.FitWidth; pdf.DefaultPrintMode = PdfPrintMode.CutMargin; //pdf.ShowToolbar = false; }
public Pag2() { InitializeComponent(); pdf = new PdfViewer(); pdf.Height = 311; pdf.Width = 341; this.Controls.Add(pdf); }
/* public Pag1() * { * InitializeComponent(); * //Form1 ne = new Form1(pdf); * * }*/ public Pag1() { InitializeComponent(); pdf = new PdfViewer(); pdf.Height = 311; pdf.Width = 341; this.Controls.Add(pdf); //openFileDialog1.ShowDialog(); }
public frmHome() { InitializeComponent(); pdf = new PdfViewer(); pdf.Dock = DockStyle.Fill; this.panelReadDocument.Controls.Add(pdf); //show data from db this.listBoxNearOpen.Items.Clear(); List <Note> listNearOpen = NoteController.getListNote(); //sort by time for (int i = 0; i < listNearOpen.Count; i++) { for (int j = listNearOpen.Count - 1; j > i; j--) { if (DateTime.Compare(listNearOpen[j].publishAt.Value, listNearOpen[j - 1].publishAt.Value) < 0) { Note noteTemp = listNearOpen[j]; listNearOpen[j] = listNearOpen[j - 1]; listNearOpen[j - 1] = noteTemp; } } } for (int i = listNearOpen.Count - 1; i >= 0; i--) { listBoxNearOpen.Items.Add(listNearOpen[i].filePath.ToString()); } this.listBoxKind.Items.Clear(); listBoxKind.Items.Add("None"); List <Kind> listKinds = KindController.getListKind(); for (int i = 0; i < listKinds.Count; i++) { listBoxKind.Items.Add(listKinds[i].kind); } //add data to comboBox List <Kind> kinds = KindController.getListKind(); for (int i = 0; i < kinds.Count; i++) { lbKind.Items.Add(kinds[i].kind); } listKind = new List <string>(); }
public PdfApp() { InitializeComponent(); pdf = new PdfiumViewer.PdfViewer(); this.Controls.Add(pdf); }