473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

FAXCOMLIB send error

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(0x8007 000D): 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
Nov 21 '05 #1
3 5555
Hi again Bob.

Gotta thank you for your other question a few weeks back, it got me into
testing the XP/2k3server Fax system with the extended COM library and I've
found it quite nice (but there are a few tricks that had to be finagled
first. I posted one of the biggies on the win2000.fax NG)

Was "The *date* is invalid" a mistype? The exception after that says
*data*.

Anyway, I've now got a consumer fax modem in my XP box here and I added a
reference to the 2k legacy FAXCOMLib (which is on XP along with the new
extended COM interface), then copied your code directly to that VB2003
project and it ran just fine with no changes. My test file is a simple text
(*.txt) file written in notepad and the text is a single line "this is a
test". Is your test file substantially more complex than that?

You say that you were able to "print it" to the fax outbox by opening it in
Word first and I assume that if you open it in Notepad and use the fax
printer it also will go out with no problems, right?

Smith
Kirkland, WA
"Bob" <bo*@nowhere.com> wrote in message
news:Oe**************@TK2MSFTNGP12.phx.gbl...
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(0x8007 000D): 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

Nov 21 '05 #2
I am having the exact same problem. Can't figure it out - modem works fine, but the code doesn't, and the error message doesn't yield any info.

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(0x8007 000D): 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


User submitted from AEWNET (http://www.aewnet.com/)
Nov 21 '05 #3
Bob
Hi,
Fixed.
It was a simple as returning the registration of .txt file back to notepad.
It was previously assigned to my 3rd party text editor.
thanks
Bob
"smith" <rc********@smithvoiceTAKEOUT.com> wrote in message
news:_W**************@newsread3.news.pas.earthlink .net...
Hi again Bob.

Gotta thank you for your other question a few weeks back, it got me into
testing the XP/2k3server Fax system with the extended COM library and I've
found it quite nice (but there are a few tricks that had to be finagled
first. I posted one of the biggies on the win2000.fax NG)

Was "The *date* is invalid" a mistype? The exception after that says
*data*.

Anyway, I've now got a consumer fax modem in my XP box here and I added a
reference to the 2k legacy FAXCOMLib (which is on XP along with the new
extended COM interface), then copied your code directly to that VB2003
project and it ran just fine with no changes. My test file is a simple text (*.txt) file written in notepad and the text is a single line "this is a
test". Is your test file substantially more complex than that?

You say that you were able to "print it" to the fax outbox by opening it in Word first and I assume that if you open it in Notepad and use the fax
printer it also will go out with no problems, right?

Smith
Kirkland, WA
"Bob" <bo*@nowhere.com> wrote in message
news:Oe**************@TK2MSFTNGP12.phx.gbl...
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(0x8007 000D): 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


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ponty | last post by:
HI, I'm trying to send a fax to our server via a .net web page, but I keep getting permission errors. The code works fine on win xp, but on 2000, i get System.UnauthorizedAccessException:...
0
by: vbMark | last post by:
Is it possible to use a PDF as a coverpage in FAXCOMLib? Or is it possible to convert it to a COV via code or a commandline utility? Thanks! --...
0
by: Will Arrowsmith | last post by:
Hi All, I am trying to create a .tiff file to fax using the windows fax service FAXCOMLib. I have created an array of images (bitmaps) and converted them to 1pbb format in order to allow...
0
by: Will Arrowsmith | last post by:
Hi All, I am aiming to create a multiframe Tiff file that I can fax using the windows fax service FAXCOMLib. I have created an array of Bitmaps (pages I want in my fax doc) and succesfully...
0
by: ahmedelmassry | last post by:
hi all , i am doing an app to send and recieve faxs using c# 2005 and os xp and i need to know how can i recieve a fax,i did the sending fax part but i dont know how to recieve ? SO can anybody give...
0
by: denisk1981 | last post by:
Hi everyone! I try to send fax using local fax modem. Everything worked fine untill I tried to send blank Excel file. It obviously cannot find anything to print and show me alert message. But the...
0
by: DAnDA | last post by:
hi im using FAXCOMLib to Send Fax using C# ASP.Net i want to know how i can Cancel a FaxJob ? Anyone Can help?
1
by: Annzs Krish | last post by:
Hi All, Same problem . Even .Tif is not working , not even sending any fax. i dont know is the request is send to Fax... not rign tone in the fax machine Could some show Ray of hope. -Annzs
0
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.