THPDFPage.AddFileAttachmentAnnotation

THPDFPage

 

Haut  Précédent  Suivant

Ajoute une annotation FileAttachment sur la page courante.

 

Syntaxe Delphi :

procedure AddFileAttachmentAnnotation ( Contents: AnsiString; FileName: AnsiString; Rectangle: TRect; Color: TColor = clRed ); overload;

procedure AddFileAttachmentAnnotation ( const Contents: string; const FileName: TFileName; Rectangle: TRect; Color: TColor = clRed ); overload;

 

Syntaxe C++ :

void __fastcall AddFileAttachmentAnnotation ( AnsiString Contents, AnsiString FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );

void __fastcall AddFileAttachmentAnnotation ( const UnicodeString Contents, const Sysutils::TFileName FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );

 

Description

Utilisez AddFileAttachmentAnnotation pour incorporer un fichier dans la page courante sous forme d'annotation FileAttachment avec la description spécifiée (Contents), le chemin de fichier (FileName), le rectangle englobant (Rectangle) et la couleur de l'icône. La surcharge Unicode TFileName (WideString sur les cibles non Unicode) ouvre les répertoires et les noms de fichier Unicode sans perte de page de codes ANSI et écrit une entrée de spécification de fichier /UF quand le nom de fichier feuille contient des caractères non ASCII.

 

 

Aperçu d'une annotation de pièce jointe