public void FaxDocument(String TheFile, string faxnumber) { FAXCOMLib.FaxServer server = new FAXCOMLib.FaxServerClass(); FAXCOMLib.FaxDoc doc = null; int response = -11; try { Response.Write(Environment.MachineName + "<hr>"); server.Connect(Environment.MachineName); } catch (Exception e) { Response.Write("1" + e.Message); } try { doc = (FAXCOMLib.FaxDoc)server.CreateDocument(TheFile); } catch (Exception e) { Response.Write("doc error" + e.Message); } try { doc.FaxNumber = faxnumber; doc.RecipientName = "Test"; doc.DisplayName = "work"; } catch (Exception e) { Response.Write("assignments" + e.Message); } try { response = doc.Send(); } catch (Exception e) { Response.Write(response + e.Message); } try { server.Disconnect(); } catch (Exception e) { Response.Write("2" + e.Message); } Response.Write("w00t<hr>"); Response.Write(response); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)