Visual Studio C#

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Visual Studio C#

Les solutions détaillées de Visual Studio C# se trouvent dans le sous-dossier C# du dossier d'installation.

 

Visual C#

 

1.Insérez la classe "vpxPrint.cs" dans le projet,

2.Instanciez cette classe avec un "using xPrint" dans l'espace de noms,

3.Les fonctions vpxPrint sont appelées avec le préfixe "vpxPrint.".

 

Visual_CSharp

 

Liste des fonctions C# : (se référer aux points d'entrée de la DLL)

public static extern void printFile(string filename) ;

public static int printFileStat(string filename)

public static extern void printXFile(string filename, string password) ;

public static string xPrintVersion()

public static extern void noPreview(string XPR_inputFile) ;

public static extern void Preview(string XPR_inputFile) ;

public static string encryptA(string iField)

public static string encryptW(string iField)

public static string getPrinter()

public static string getLPI(string fontDesc)

public static string getCPI(int fontSize)

public static string getMMWidth(string Value, string Font)

public static string getINWidth(string Value, string Font)

public static string fontDialog(int where = 1)

public static string printerDialog()

public static int xCrypt(string iFile, string password)

public static int xUnCrypt(string iFile, string password)

public static string getMailResult()

public static int pageCount(string filename)

public static int ExecuteAndWait(string Program, string Param, string defaultDir, int viewMode = 1)

public static bool saveFromClipBoard(string filename)

public static void vDebug(bool onOff)

public static int getPrinterRes() ;

public static int textHeight(string text, string fontDesc, int width) ;

public static extern void getImageDim(string imageName, ref int imageWidth, ref int imageHeight) ;

public static extern void setPassword(string XPR_inputFile, string password) ;

public static extern void setKeyA(string password) ;

 

public static string escapeHTML(string inputString)

 

 public static string Entry(int i, string A, char D = ',')

 public static int numEntries(string A, char D = ',')