G
gowri
Hello
i tried to send fax using the following code.but it get an runtime
interop error.
the code as follows
public class fax : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button but;
protected FaxServerClass fs = new FaxServerClass();
private void Page_Load(object sender, System.EventArgs e)
{
//fs.Connect("Sri"); //specifies the machinename
object obj = fs.CreateDocument(@"c:\hello.doc");
FaxDoc fd = (FaxDoc)obj;
fd.FaxNumber = "number7#";
fd.RecipientName = "Tester";
fd.Send ();
int i = Convert.ToInt32 (fd.Send());
Response.Write (i.ToString());
fs.Disconnect();
// Put user code to initialize the page here
}
if this is not worthy can any one send me the code sample or
can provide me the clear root where i went wrong.
pls its an urgent.
i tried to send fax using the following code.but it get an runtime
interop error.
the code as follows
public class fax : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button but;
protected FaxServerClass fs = new FaxServerClass();
private void Page_Load(object sender, System.EventArgs e)
{
//fs.Connect("Sri"); //specifies the machinename
object obj = fs.CreateDocument(@"c:\hello.doc");
FaxDoc fd = (FaxDoc)obj;
fd.FaxNumber = "number7#";
fd.RecipientName = "Tester";
fd.Send ();
int i = Convert.ToInt32 (fd.Send());
Response.Write (i.ToString());
fs.Disconnect();
// Put user code to initialize the page here
}
if this is not worthy can any one send me the code sample or
can provide me the clear root where i went wrong.
pls its an urgent.