Ciao,
non mi è capitato di usare lo script per inviare i fax, quindi non saprei esattamente il motivo.
Per queste operazioni sul fax, ho referenziato il componente COM "FAXCOMEXLib" e poi sono andato ad usare le classi che il wrapper .net mi ha creato.
Con un codice di questo tipo:
public string Invia(string file)
{
FaxDocumentClass fax = new FaxDocumentClass();
fax.Sender.Name = "Mittente";
//--- identitificativo chiamante
fax.Sender.Department = "Chiamante";
fax.Sender.Company = "Chiamante";
fax.Sender.TSID = "NumeroFax";
fax.Sender.FaxNumber = "NumeroFax";
fax.Subject = "Oggetto";
fax.Note = "Testo";
fax.Recipients.Add("Destinatario", "Cliente");
//--- nel body ci va il file fisico
fax.Body = file;
fax.DocumentName = file;
fax.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptNONE;
fax.ScheduleType = FAX_SCHEDULE_TYPE_ENUM.fstNOW;
//--- apro e chiudo
FaxServer serverFax = Connetti();
string[] valore = fax.ConnectedSubmit(serverFax) as string[];
return valore[0];
}
private static FaxServer Connetti()
{
string nomeComputer = Dns.GetHostName();
FaxServer ser = new FaxServer();
ser.Connect(nomeComputer);
return ser;
}
da me funziona, prova a vedere se per caso ti può aiutare cambiare strategia...
Ciao.
Matteo Raumer
[MCAD .net, MVP Visual C#]
http://blogs.dotnethell.it/freeteo