Solved

Fax

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

749 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