Solved

Fax

Posted on 2002-07-30
5
183 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Use closed file on desktop in vba 6 57
Use Multiple Forms 4 38
add text to end of existing text in file 16 62
How to debug this code 7 51
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now