Hi All,
I am having some trouble allowing my application to fax a .htm file.
The code below works fine if the document is a word document (.doc), by sending the file as an image to the fax printer.
However when I provide a .htm file to be faxed, the print dialog appears.
After clicking 'ok' the file is send to the fax correctly.
How do I avoid the print dialog
Code:
try
{
//FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(remittanceFileReference.FileName);
FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument("c:/fax.htm");//<--If this is .doc, it is ok
faxDoc.RecipientName = remittanceFileReference.ContactName;
faxDoc.FaxNumber = remittanceFileReference.FileReference;
faxDoc.DisplayName = remittanceFileReference.ContactName;
int Response = faxDoc.Send();
}
catch(Exception ex)
{MessageBox.Show(ex.Message);}
finally
{faxServer.Disconnect();}
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================