FillImageField

FillImageField(string, string)

Colle une image sur le champ de bouton existant comme son apparence selon son nom de champ complet.

public void FillImageField(string fieldName, string imageFileName)
ParamètreTaperLa description
fieldNameStringLe nom de champ complet du champ du bouton d’image.
imageFileNameStringLe chemin du fichier image, relatif et absolu, est correct.

Exemples

Form form = new Form("PdfForm.pdf", "PdfForm_filled.pdf");
form.FillImageField("fieldName", "file.jpg");
form.Save();

Voir également


FillImageField(string, Stream)

Surcharge la fonction de FillImageField. L’entrée est un flux d’image.

public void FillImageField(string fieldName, Stream imageStream)
ParamètreTaperLa description
fieldNameStringLe nom de champ complet.
imageStreamStreamLe flux de l’image.

Exemples

Form form = new Form("PdfForm.pdf", "PdfForm_filled.pdf");
form.FillImageField("fieldName", new FileStream("file.jpg", FileMode.Open, FileAccess.Read));

Voir également