MSCOMM for MCRIDER

Hi its chazter again mate (sorry about this). Is it possible to just print a window and nothing else?

Chaz
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:
This example uses the PrintForm method to print the current form.  To try this example, paste the code into the Declarations section of a form. Place on the form any controls you want to see on the printed form, and then press F5 and click the form.

Private Sub Form_Click ()
      Dim Msg      ' Declare variable.
      On Error GoTo ErrorHandler      ' Set up error handler.
      PrintForm      ' Print form.
      Exit Sub
ErrorHandler:
      Msg = "The form can't be printed."
      MsgBox Msg      ' Display message.
      Resume Next
End Sub


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
chazterAuthor Commented:
What i mean mate is send the form to the fax machine...

Chris

p.s Thanks for all the help so far
0
mcriderCommented:
Once you've selected the fax device as the printer, the PrintForm will send the form to the remote fax machine.


Cheers!
0
chazterAuthor Commented:
Well mate I'm am very grateful for all your help. If there is anything i can do for u just let me know.

Chazter
0
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.