public static void Example() { string strPath; int intPSToPDF; strPath = System.AppDomain.CurrentDomain.BaseDirectory; // Instantiate Object APServer.Server oSVR = new APServer.Server(); intPSToPDF = oSVR.PSToPDF(strPath + "ps.ps", strPath + "ps.pdf"); if (intPSToPDF != 0) { ErrorHandler("PSToPDF", intPSToPDF); } // Release Object oSVR = null; // Process Complete WriteResults("Done!"); }