I am Using this code , by i getting Exception Name :
"The handle is Invalid (Exception from HRESULTS :0x80070006 (E_HANDLE))"
One More thing I would like to use fax server , i check the server is funtioning correctly due to send fax form my local machine
any one help me.....................
Code is here
---------------------------------------------------------------------------------------------------------------------------
private
void btnSend_Click(object sender, System.EventArgs e){
SendFax(txtDocName.Text,
Application.StartupPath+@"\"+txtFileName.Text,txtRecipientName.Text,txtRecipientFax.Text);}
public void SendFax(string DocumentName, string FileName, string RecipientName, string FaxNumber){
if (FaxNumber != ""){
try{
FAXCOMLib.
FaxServer faxServer = new FAXCOMLib.FaxServerClass();faxServer.Connect(
"VPNSVR");FAXCOMLib.
FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName);faxDoc.RecipientName = RecipientName;
faxDoc.FaxNumber = FaxNumber;
faxDoc.DisplayName = DocumentName;
int Response = faxDoc.Send();faxServer.Disconnect();

how to Send a Fax from Fax-Server using C#............ getting Exception
Scott Butler
Thanks I Done it Successfully. Now i am facing new problem that is Print Dialog appearing {when i am sending my faxes using html }. I am Sending batch but it is showing print dialog again and again....
DevDells
server you can leave the server name string as blank. If you want to connect
to remote server and send a fax please make use of Extended COM APIs. For
further details on extended COM Apis see
http://msdn.microsoft.com/library/d...inta_n_7e05.asp.
Robert Beaubien
Peter Freeman
Sorry for the URL
check this
http://msdn.microsoft.com/library/default.asp url=/library/en-us/fax/fax/faxusing_7htf.asp