mscomm help!

Hi, as part of my main program i would like to make a fax utility. How do i do this using the mscomm control?

Once i have connected to the fax machine i want to be able to send an entire window (as you would see it on the screen) to the fax, how do i do this?

Please help as this is very urgent....

Thanks in advance Chris.

p.s I'm using VB6
chazterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
Why not just install something like WinFax and select the WinFax device to be the Printer Object...  Then you can just print to the Printer Object...


Cheers!
0
chazterAuthor Commented:
Ummmm...how do i do that mate? I'm pretty (reasonably) new to VB...how do i implement that in my program..how would i get it to send just the window and nothing else?

Cheers Chris.
0
mcriderCommented:
Once you've installed a package like WinFax you will get a printer that will show up with all the rest of your printers.  To select WinFax as your printer, you can do something like this:

Dim X As Printer
    For Each X In Printers
        If X.DeviceName = "Whatever your WinFax print device is called" Then
            Set Printer = X
            Exit For
        End If
    Next



Then all you have to do is print to the print device like this:

Printer.Print "Hello"
Printer.EndDoc


Hope this helps!


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.