FAXCOMEXLib in C#

Joined
Sep 29, 2005
Messages
1
Reaction score
0
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.
 
Joined
Sep 12, 2005
Messages
8
Reaction score
0

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top