473,508 Members | 2,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems sending a fax

I am trying to get a faxing routine working, but I cannot get past the error

An unhndled exception of the type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll
Additional information: The data is invalid.

The code I am using is

Dim fxServer As Object

Dim fxDoc As Object

'

fxServer = CreateObject("Faxserver.Faxserver")

fxServer.connect("SERVER")

fxDoc = fxServer.createdocument("D:\Test1.fax")

fxDoc.faxnumber = "0123456789"

fxDoc.send()

Does anyone have any ideas.

Thanks
Nov 21 '05 #1
3 1016
"Jon Dempsey" <jon.dempsey@mines_a_beer.com> schrieb:
I am trying to get a faxing routine working, but I cannot get past the
error

An unhndled exception of the type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll
Additional information: The data is invalid.


Which line causes the exception?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
It's the fxDoc.Send method that causes the error

Regards

Jon

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
"Jon Dempsey" <jon.dempsey@mines_a_beer.com> schrieb:
I am trying to get a faxing routine working, but I cannot get past the
error

An unhndled exception of the type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll
Additional information: The data is invalid.


Which line causes the exception?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Sorted Now,

Thanks Herfried
"Jon Dempsey" <jon.dempsey@mines_a_beer.com> wrote in message
news:dk*******************@news.demon.co.uk...
It's the fxDoc.Send method that causes the error

Regards

Jon

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
"Jon Dempsey" <jon.dempsey@mines_a_beer.com> schrieb:
I am trying to get a faxing routine working, but I cannot get past the
error

An unhndled exception of the type
'System.Runtime.InteropServices.COMException' occurred in
microsoft.visualbasic.dll
Additional information: The data is invalid.


Which line causes the exception?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #4

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

Similar topics

1
2875
by: dan glenn | last post by:
I'm creating HTML emails from a PHP site and sending them out to an email list (just about 40 people so far are on this list). I've tested and confirmed that these emails work in yahoo.com's...
2
1223
by: lucifer | last post by:
actually i am transmitting data over wireless medium so i have to control the data ie slow it down thats i have to get a delay in the transmitting function inversely to the speed of the the...
1
2883
by: Amadej | last post by:
Hello everyone, I'm having some odd problems with a little program I wrote for sending/receiving bytes across the network. I am using synchronous sockets, and it seems that when I send byte...
0
3447
by: ZR | last post by:
I am writing two applications which needs to (among other things) communicate through network, so one of them is a client and the other one is a server. I have used asynchronous socket examples...
1
1577
by: Andreas R. | last post by:
Hello, I'm using Python's asynchat module for network support in a Python-based game, and I run into two problems, both of which occur at random times. Most of the time, the network sending and...
0
7233
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
7342
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,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.