Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button13_Click_1(object sender, EventArgs e)
- {
- GeraRelatorio(@"C:\Users\Hiroyuki\Desktop\ArquivoPDF");
- }
- private void GeraRelatorio(string CaminhoDoArquivo) {
- Document documento = new Document();
- PdfWriter.GetInstance(documento, new FileStream(CaminhoDoArquivo, FileMode.Create));
- try
- {
- Paragraph p = new Paragraph(//////);
- documento.Open();
- documento.Add(p);
- documento.Close();
- }
- catch (Exception e) {
- MessageBox.Show(e.StackTrace);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement