private void btnPrint_Click(object sender, EventArgs e) { try { List <NssfContributionsDTO> _nssfcomputations = (List <NssfContributionsDTO>)bindingSourceNewNSSFComputation.List; PDFViewer _viewer = new PDFViewer(_nssfcomputations, _User, connection); _viewer.WindowState = FormWindowState.Normal; _viewer.StartPosition = FormStartPosition.CenterScreen; _viewer.Show(); } catch (Exception ex) { Utils.ShowError(ex); } }
public Tests() { Application.Init(); Window window = new Window("GtkPdfSharp") { WindowPosition = WindowPosition.Center, }; window.DestroyEvent += OnDestroy; window.Realized += OnRealized; pdf = new PDFViewer(); window.Add(pdf); pdf.Show(); window.SetSizeRequest(1280, 1024); window.Show(); }
public Form1() { rp = new ResponseToSignDocument(); InitializeComponent(); lbIdPrefeitura.Text = rp.IdPrefeitura.ToString(); lbNomePrefeitura.Text = rp.NomePrefeitura; lbIdSecretaria.Text = rp.IdSecretaria.ToString(); lbNomeSecretaria.Text = rp.NomeSecretaria; lbIdAssinante.Text = rp.IdAssinante.ToString(); lbNomeAssinante.Text = rp.NomeAssinante; lbTipoPessoa.Text = rp.TipoPessoa; lbDocumentoAssinante.Text = rp.DocumentoAssinante; lbDataNascimento.Text = (rp.DataNascimento.HasValue ? rp.DataNascimento.Value.ToString("dd/MM/yyyy") : "Não disponível."); lbEmail.Text = rp.Email; lbNumeroTelefone.Text = rp.Telefone; lbMD5Documento.Text = rp.MD5Documento; PDFViewer.src = rp.URLDocumento; PDFViewer.Show(); rp.Cert = EscolherCertificado(rp); }
public Viewer() : base("GtkPdfViewer", ApplicationFlags.None) { Init(); Window window = new Window("GtkPdfSharp") { WindowPosition = WindowPosition.Center, }; window.DestroyEvent += OnDestroy; window.Realized += OnRealized; pdf = new PDFViewer(); window.Add(pdf); pdf.Show(); window.SetSizeRequest(1280, 1024); window.Show(); Run(); }
private void viewPDFBTN_Click(object sender, System.Windows.RoutedEventArgs e) { PDFViewer p = new PDFViewer(gridControl.GetFocusedRowCellValue("Location").ToString()); p.Show(); }