• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

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
0
chazter
Asked:
chazter
  • 3
1 Solution
 
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
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now