Cloud
Cloud-Dienstleistung für schnelle und effektive Analyse und Visualisierung von Daten für Ihr Business ohne eigene Applikationen zu erstellen oder zu programmieren.
using var connection = new MySqlConnection(connectionString);
connection.Open();
using var reader = new MySqlCommand("SELECT Name, Email FROM Recipients", connection).ExecuteReader();
while (reader.Read())
{
var form = new StiForm();
form.Load("Forms/Invitation.pdf");
// set the form's fields from the row, then export to PDF
var pdfBytes = form.ExportToByteArray(new StiPdfFormExportSettings());
var mail = new MailMessage("from@company.com", reader.GetString("Email"));
mail.Attachments.Add(new Attachment(new MemoryStream(pdfBytes), "form.pdf", MediaTypeNames.Application.Pdf));
new SmtpClient("smtp.company.com").Send(mail);
}StiForm.Load + field assignment — open the shared template and fill it with the row's values.ExportToByteArray(StiPdfFormExportSettings) — render the filled form to PDF bytes for the attachment.SmtpClient.Send(MailMessage) — e-mail the personalized PDF to each recipient.