Exemple #1
0
 private void btCustomPdf_Click(object sender, EventArgs e)
 {
     using (SaveFileDialog saveFileDialog1 = new SaveFileDialog())
     {
         saveFileDialog1.FileName = "Fatura_Firma_Gorunum.pdf";
         if (DialogResult.OK != saveFileDialog1.ShowDialog())
         {
             return;
         }
         var pdfContent = Html2PdfConverter.ConvertHtml2PDF(wbFaturaHtml.DocumentText);
         File.WriteAllBytes(saveFileDialog1.FileName, pdfContent);
     }
 }
Exemple #2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     using (SaveFileDialog saveFileDialog1 = new SaveFileDialog())
     {
         saveFileDialog1.FileName = "Fatura.pdf";
         if (DialogResult.OK != saveFileDialog1.ShowDialog())
         {
             return;
         }
         var pdfContent = Html2PdfConverter.ConvertHtml2PDF(wbGibFaturaGorunumu.DocumentText);
         File.WriteAllBytes(saveFileDialog1.FileName, pdfContent);
     }
 }