I am trying to write fax routine in C#.
Here is the sample of the code that I am using:
FaxServer faxServer = new FAXCOMEXLib.FaxServerClass();
FAXCOMEXLib.FaxDocument faxDoc = new FAXCOMEXLib.FaxDocumentClass();
object jobid;
faxServer.Connect(Environment.MachineName);
faxDoc.Body = textBox1.Text;
faxDoc.Recipients.Add(textBox2.Text, "");
jobid = (object)faxDoc.ConnectedSubmit(faxServer);
textBox4.Text = textBox4.Text + " Job ID for file " + textBox1.Text + " is : " + jobid[1] + "\\n";
faxServer.Disconnect();
the problem is that jobid[1] doesn't work in C#. What is the alternative? Also, I want to get the status for each jobin the queue:
faxJob = faxQ.GetJobs() doesn't have item method. Can any one help me with this? Thanks for your time.
Here is the sample of the code that I am using:
FaxServer faxServer = new FAXCOMEXLib.FaxServerClass();
FAXCOMEXLib.FaxDocument faxDoc = new FAXCOMEXLib.FaxDocumentClass();
object jobid;
faxServer.Connect(Environment.MachineName);
faxDoc.Body = textBox1.Text;
faxDoc.Recipients.Add(textBox2.Text, "");
jobid = (object)faxDoc.ConnectedSubmit(faxServer);
textBox4.Text = textBox4.Text + " Job ID for file " + textBox1.Text + " is : " + jobid[1] + "\\n";
faxServer.Disconnect();
the problem is that jobid[1] doesn't work in C#. What is the alternative? Also, I want to get the status for each jobin the queue:
faxJob = faxQ.GetJobs() doesn't have item method. Can any one help me with this? Thanks for your time.