Solved

Fax

Posted on 2002-07-30
5
220 Views
Last Modified: 2010-05-01
i'm writing vb project. On Click button i need to fax text from the text box.
0
Comment
Question by:Sychev1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 17

Accepted Solution

by:
Barry Cunney earned 50 total points
ID: 7188453
0
 
LVL 17

Expert Comment

by:Barry Cunney
ID: 7188466
You could use the WriteProfileString API call and rewrite the [WINDOWS], DEVICE entry in the WIN.INI file to change printer to a FAX printer set up. VB will instantly use the new printer, when the next Printer.Print command is next issued
0
 
LVL 1

Expert Comment

by:anu1401
ID: 7200495
try this code:
Dim num As Integer

Private Sub cmdClose_Click()
    End
End Sub

Private Sub Form_Load()
    cmbAttach.Enabled = False
    cmbFaxaddress.Enabled = False
    cmdCancel.Enabled = False
    cmdSend.Enabled = False
    Option1.Enabled = False
    Option2.Enabled = False
    Text1.Enabled = False
End Sub

Private Sub mnu_Connect_Click()
    If MSComm1.PortOpen = False Then
        MSComm1.PortOpen = True
       
        cmbAttach.Enabled = True
        cmbFaxaddress.Enabled = True
        cmdCancel.Enabled = True
        cmdSend.Enabled = True
        Option1.Enabled = True
        Option2.Enabled = True
        Text1.Enabled = True
       
        MsgBox "Port opened"
    Else
        MsgBox "Port already opened"
    End If
End Sub

Private Sub MSComm1_OnComm()

End Sub

anu
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8049132
Hi Sychev1,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept BCUNNEY's comment(s) as an answer.

Sychev1, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8095947
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question