Visual Studio C#

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Visual Studio C#

Detailed Visual Studio C# solutions are located in the subfolder C# of the installation folder.

They can be run in 32 or 64bit mode.

 

Visual C#

 

1.Insert the "vpxPrint.cs" (version 10.35) class in the project,

2.Instantiate this class with a "using xPrint" in your namespace,

3.vpxPrint functions are called with "vpxPrint." prefix.

 

Visual_CSharp

 

List of C# functions: (refer to the DLL entry points)

       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 = ',')