Click here to Skip to main content
15,906,327 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I have developed application using ASP.NET, FAXCOMLib
C#
FAXCOMLib.FaxServer faxServer = new FAXCOMLib.FaxServerClass();
faxServer.Connect(Environment.MachineName);
FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName);
                
faxDoc.CoverpageName = "MOKSHA DIGITAL PVT LTD";
faxDoc.EmailAddress = "amit.patel@mokshadigital.com";
faxDoc.RecipientName = RecipientName;
faxDoc.FaxNumber = "08041101208";
faxDoc.DisplayName = DocumentName;
faxDoc.FileName = FileName;
                
//faxDoc.CallHandle = 1;
try
{
   int Response = faxDoc.Send();
   faxServer.Disconnect();
   lblMessage.Text = Response.ToString();
}
catch (Exception ex)
{
   lblMessage.Text = ex.Message.ToString();
}

I want to send fax to US cn u guys please tell me what will be the
format of faxDoc.FaxNumber = "08041101208" , if I m sending to us.
and my second question is do u guys have list of responses and there corresponding meaning.
int Response = faxDoc.Send();
Posted
Updated 19-Oct-10 5:07am
v2
Comments
SKOTAJI 31-May-12 7:37am    
Check the IFaxDoc interface .. it has list of return codes.

public interface IFaxDoc
{
[DispId(29)]
string BillingCode { get; set; }
[DispId(35)]
int CallHandle { get; set; }
[DispId(34)]
object ConnectionObject { set; }
[DispId(2)]
string CoverpageName { get; set; }
[DispId(26)]
string CoverpageNote { get; set; }
[DispId(27)]
string CoverpageSubject { get; set; }
[DispId(5)]
int DiscountSend { get; set; }
[DispId(31)]
string DisplayName { get; set; }
[DispId(30)]
string EmailAddress { get; set; }
[DispId(33)]
string FaxNumber { get; set; }
[DispId(1)]
string FileName { get; set; }
[DispId(8)]
string RecipientAddress { get; set; }
[DispId(9)]
string RecipientCity { get; set; }
[DispId(7)]
string RecipientCompany { get; set; }
[DispId(12)]
string RecipientCountry { get; set; }
[DispId(14)]
string RecipientDepartment { get; set; }
[DispId(16)]
string RecipientHomePhone { get; set; }
[DispId(6)]
string RecipientName { get; set; }
[DispId(15)]
string RecipientOffice { get; set; }
[DispId(17)]
string RecipientOfficePhone { get; set; }
[DispId(10)]
string RecipientState { get; set; }
[DispId(13)]
string RecipientTitle { get; set; }
[DispId(11)]
string RecipientZip { get; set; }
[DispId(3)]
int SendCoverpage { get; set; }
[DispId(20)]
string SenderAddress { get; set; }
[DispId(19)]
string SenderCompany { get; set; }
[DispId(22)]
string SenderDepartment { get; set; }
[DispId(36)]
string SenderFax { get; set; }
[DispId(24)]
string SenderHomePhone { get; set; }
[DispId(18)]
string SenderName { get; set; }
[DispId(23)]
string SenderOffice { get; set; }
[DispId(25)]
string SenderOfficePhone { get; set; }
[DispId(21)]
string SenderTitle { get; set; }
[DispId(4)]
int ServerCoverpage { get; set; }
[DispId(28)]
string Tsid { get; set; }

[DispId(32)]
int Send();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900