B
Bob
Hi,
Win2kServer Platform
I dusted off some fax sending code that used to work.
The send is now returning
'The date is invalid.
System.Runtime.InteropServices.COMException(0x8007000D): The data is invalid
as FAXCOMLIB.IFaxDoc.Send()
(Code Below)
I recently just installed a PCI modem card for the test. However it sends
the test file fine if I open the file in Word and then 'send to FAX
Recipient'.
Anybody struck anything similar?
Thanks
Bob
Public Sub SendFax()
Dim FaxServer As New FAXCOMLib.FaxServer
Dim FaxDoc As FAXCOMLib.FaxDoc
Dim intResult As Int32
Try
FaxServer.Connect(Environment.MachineName)
FaxDoc = CType(FaxServer.CreateDocument("c:\temp\mytest.txt"),
FAXCOMLib.FaxDoc)
FaxDoc.FaxNumber = "14727658"
FaxDoc.DisplayName = "Tester"
FaxDoc.RecipientName = "Tester"
intResult = FaxDoc.Send
FaxServer.Disconnect()
Catch obja As System.Exception
MsgBox("clsFaxer.SendFax " & obja.Message & obja.GetBaseException.ToString)
End Try
End Sub
Win2kServer Platform
I dusted off some fax sending code that used to work.
The send is now returning
'The date is invalid.
System.Runtime.InteropServices.COMException(0x8007000D): The data is invalid
as FAXCOMLIB.IFaxDoc.Send()
(Code Below)
I recently just installed a PCI modem card for the test. However it sends
the test file fine if I open the file in Word and then 'send to FAX
Recipient'.
Anybody struck anything similar?
Thanks
Bob
Public Sub SendFax()
Dim FaxServer As New FAXCOMLib.FaxServer
Dim FaxDoc As FAXCOMLib.FaxDoc
Dim intResult As Int32
Try
FaxServer.Connect(Environment.MachineName)
FaxDoc = CType(FaxServer.CreateDocument("c:\temp\mytest.txt"),
FAXCOMLib.FaxDoc)
FaxDoc.FaxNumber = "14727658"
FaxDoc.DisplayName = "Tester"
FaxDoc.RecipientName = "Tester"
intResult = FaxDoc.Send
FaxServer.Disconnect()
Catch obja As System.Exception
MsgBox("clsFaxer.SendFax " & obja.Message & obja.GetBaseException.ToString)
End Try
End Sub