I am trying to send a fax thourght ASP.NET/C# using the FaxCOMLibEx .
I can send the fax sucessfully when I send a Text file, but when I try
send a .doc I don't have any answer, the application (Webform) just
run forever. Sometimes I receive a FileNotFoundException, but I am
sure the file is there. I can see a WINWORD.exe process running under
the ASPNET account with 100% of the CPU time. If I try other file
type, gif for instance, the same thing happened and I can see a
PHOTOEDR.exe process runing as the WINWORD.exe.
I am using the folowing code written in c#:
FAXCOMEXLib.FaxServer faxServer = new FAXCOMEXLib.FaxServer();
FAXCOMEXLib.FaxDocument faxDocument = new FAXCOMEXLib.FaxDocument();
faxServer.Connect("Mycomputer");
faxDocument.Recipients.Add("82948440","Someone");
faxDocument.Body = Server.MapPath("Fax.doc");
faxDocument.ConnectedSubmit(faxServer);
Again, with a .txt file works fine, but .doc don't.
The Microsoft's documentation about the FaxDocument's Body property says:
"Examples of documents that you can send as a fax body are a text file
(.txt), a Microsoft Word document (.doc), or a Microsoft Excel
spreadsheet (.xls). When you send a fax from a client computer, the
body has to be associated with an application that is installed on
that computer, and the application has to support the PrintTo verb;
otherwise, the fax will fail."
Ok, I have word installed and the word support the PrintTo verb.
Anyone can solve this mistery?
Thanks,
Fabricio |