473,668 Members | 2,589 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 .InteropService s.COMException' occurred in
microsoft.visua lbasic.dll
Additional information: The data is invalid.

The code I am using is

Dim fxServer As Object

Dim fxDoc As Object

'

fxServer = CreateObject("F axserver.Faxser ver")

fxServer.connec t("SERVER")

fxDoc = fxServer.create document("D:\Te st1.fax")

fxDoc.faxnumber = "0123456789 "

fxDoc.send()

Does anyone have any ideas.

Thanks
Nov 21 '05 #1
3 1023
"Jon Dempsey" <jon.dempsey@mi nes_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 .InteropService s.COMException' occurred in
microsoft.visua lbasic.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******** ******@TK2MSFTN GP09.phx.gbl...
"Jon Dempsey" <jon.dempsey@mi nes_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 .InteropService s.COMException' occurred in
microsoft.visua lbasic.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@mi nes_a_beer.com> wrote in message
news:dk******** ***********@new s.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******** ******@TK2MSFTN GP09.phx.gbl...
"Jon Dempsey" <jon.dempsey@mi nes_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 .InteropService s.COMException' occurred in
microsoft.visua lbasic.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
2885
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 webmail. And I know they work on *my* Outlook Express. But I have one person (I know of) who gets the emails as plain text, so she sees the HTML code for the email instead of its proper representation. She has, like myself, OE6, and other html emails...
2
1230
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 processor the code i have been using is void delay(int n) { clock_t start = clock(); while( ( ( (clock()-start)/CLOCKS_PER_SEC )*1000 )<n) ;
1
2897
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 after byte too fast, the packet gets lots somewhere (as odd as that sounds). Here's the sending code:
0
3458
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 found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconblockingclientsocketexample.asp as templates (they have to be asynchronous, because application must not freeze if connection fails). I have converted the...
1
1588
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 receiving is perfect, but about 1 out of 10 times, it fails with one of these errors: -- Problem 1. When sending data, I sometimes the following exception: Handler connected 127.0.0.1:1242 at 0x2977800> (socket.error:(9, 'Bad file descriptor')
0
8371
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8572
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7391
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5677
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2782
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.