game-master
asked on
SEND FAX USING VB6
Hello Experts.
Here is the scenario: I have an winXP pc, we have a telephone with a fax machine. There is no such connection with my pc and and fax machine.
fax machine number is 4111601.
Now here is my question, is there a way i could send a fax to that fax machine using my vb program? do i need any ocx or other files to do it?
and here is i think the hardest part for me, using that fax machine i wanted to send fax to other fax machine inside our company, lets say for example the number of that fax machine is 4222111.
I really stack with it.
I do really need your help experts..
Thank you very much in advance..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hes,
i know that there's no connection, that is why im asking experts like you, if there's a way how can
i able to connect those to 2 devices...if you have bright idea, i really need that one...
thank you...
sangin,
i tried your code, it gives me an error on the send part... "OUTLOOK DOES NOT RECOGNIZE ONE OR MORE NAMES."
what does it mean?
thanks
game-master
Sungit!!!
ASKER
guys,
dont want any challenge for this question??
Hey game!
as far as the error u r getting check this one out.
http://support.microsoft.com/kb/823662
U'll need to have a dial up line (phone line) setup on ur machine. It's not required that a fax machine has to be connected to ur machine but a dial up line is required. Once u do that u'll need to install and configure Microsoft Fax. Then the code that i had posted before should work for u. Let me know if u need any help in setting up phone line and microsoft fax. Lets do it one step at a time.
Cheers,
Strider.
as far as the error u r getting check this one out.
http://support.microsoft.com/kb/823662
U'll need to have a dial up line (phone line) setup on ur machine. It's not required that a fax machine has to be connected to ur machine but a dial up line is required. Once u do that u'll need to install and configure Microsoft Fax. Then the code that i had posted before should work for u. Let me know if u need any help in setting up phone line and microsoft fax. Lets do it one step at a time.
Cheers,
Strider.
Check this one out! How to configure fax service on windows XP
http://support.microsoft.com/kb/306550
http://support.microsoft.com/kb/306550
ASKER
i try this code...
Dim FaxServer As Object
Dim FaxDoc As Object
'Create FaxServer object...
Set FaxServer = CreateObject("FaxServer.Fa
'...and connect to it - no empty name allowed
FaxServer.Connect ("mycomputer")
'Create document
Set FaxDoc = FaxServer.CreateDocument("
FaxDoc.FaxNumber = "+99 (99) 999999"
FaxDoc.RecipientName = "John Doe"
FaxDoc.Send
Set FaxDoc = Nothing
FaxServer.Disconnect
Set FaxServer = Nothing
I GOT AN ERROR ON THE SEND PART.. "Method Send of object IFaxDoc Failed" ....Invalid handle...
what is the error?
Please help...
game-master
ASKER
sangin
thank you for your very warm help...
how i set up the phone line and microsoft fax
Gosh,
I seem to remember saying you need a phone connection on the pc you want to send a fax from.
I seem to remember saying you need a phone connection on the pc you want to send a fax from.
ASKER
i already have a phone connection on my PC...
ASKER
guys,
i can send fax now, but i need to know how can i determine if the fax already sent? if line is busy? if sending fax failed?
is there any boolean property on the faxServer?
im asking this i need to send fax to multiple recipient (fax number) and each recipient have different attachment...
I really need your help guys...
Thanks in advance!
Game-Master
Then you can't
You need a phone connection on your PC to send a FAX