Delphi (Embarcadero)

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi (Embarcadero)

Un exemple de projet Delphi se trouve dans le dossier d'installation, sous-dossier delphi.

 

Exemple de projet :

 

1.Insérer "vpxPrint.pas" (version 10.35) dans la  phrase "uses".

Delphi_appel_DLL_printFile3

 

 

2.Appel des fonctions vpxPrint:

 

Lors de la saisie du code, après avoir entré vpxprint., le menu contextuel de Delphi affiche les fonctions disponibles dans l'unité vpxPrint.pas.

Les fonctions peuvent être préfixées par vpxprint. ou non.

 

Delphi_appel_DLL_printFile3c

Exemples :

Delphi_appel_DLL_printFile3b

 

Liste des fonctions et procédures (vpxPrint.pas) : (se référer aux points d'entrée de la DLL)

 

// Interface Delphi 4GL vpxPrint

// =============================

procédure printFile(const FileName : string) ;

procedure printXFile(const FileName, password : string) ;

function printFileStat(const FileName : string) : integer ;

function getCPI(const FontSize : integer) : string ;

function getLPI(const Fontstring : string) : string ;

function xPrintVersion: string ;

function pageCount(Filename : string) : integer ;

procédure setKeyA(password : string) ;

function encryptA(iValue : ansiString) : ansiString ;

function encryptW(iValue : String) : Chaîne ;

procedure setPassword(const password : string) ;

function getMailResult: string ;

function ExecuteAndWait(prog, param, defdir : string ; viewmode : integer) : integer ;

function xCrypt(iFile, iPassword : string) : integer ;

function xUnCrypt(iFile, iPassword : string) : integer ;

function getPrinterRes() : integer ;

function getDefaultPrinter: string ;

function getPrinterDefault: string ;

function getPrinter: string ;

function getINWidth(text, font : string) : string ;

function getMMWidth(text, font : string) : string ;

 

function printerDialog: string ;

function fontDialog(device : integer = 2) : string ;

procedure getImageDim(filename : string ; var w, h : integer) ;

function getLastPrinter: string ;

function getTextHeight(const text, font : string ; pixels : integer) : integer ;

function textHeight(const text, font : string ; width : integer) : integer ;

 

//fonction getPrinterList(max : integer = 16384) : string ;

function getPrinterList: TStringList;

function escapeHTML(const text : string) : string ;

procedure vDebug(const onOff : boolean) ;

 

function numEntries(const A : string ; D : char = ',') : integer ;

function entry(const i : integer ; const A : string ; D : char = ',') : string ;

///////////////////////////////////////////////////////////////////////////////////////////////////////////