Advertisement

05.06.2008 at 04:13PM PDT, ID: 23381224
[x]
Attachment Details

microsoft Fax Service for Win2k3 getting event status of jobs...

Asked by IT_NERD in .NET, Miscellaneous Programming, Visual Studio .NET 2005

Tags: vb.net

Hello there, I am new to VB.net coding and am working on sending a fax from a tif document.  I am currently testing using a form to pass static parameters for the moment.  But I am looking to use it in my CRM system and as such I need to monitor the status of the current job so that the code monitors the document and lets the end user know if it fails as they won't see the queue.  And pass this to a prompt...

How do I do this?  Have been looking everywhere and there are a few confusing examples.  I have tried with the faxserver.ListenToServerEvents but to no avail.  Please I am my wits end.

Can someone please give complete and easy to follow code?  Below is what I have at the moment...

Just testing I want to then move this code as a com object if possible.  But think that comes later...

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
Imports FAXCOMEXLib
Imports System
Imports Microsoft
 
Public Class Form1
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn1.Click
 
        'Parameters for the fax server console
        'library that connects to faxserver
        Dim FaxServer As New FAXCOMEXLib.FaxServer
        'FaxServer.ListenToServerEvents(FAX_SERVER_EVENTS_TYPE_ENUM.fsetOUT_QUEUE)
 
        'Faxserver which events are logged
        Dim Connection As String
        'define a new document
        Dim FaxDocument As New FaxDocument
        Dim FaxRPTtoSend As String
        'added to project for converting pdf's to tif images to 
        'be able to fax them over without user interaction
        Dim PdfConverter As New PDF2ImageConverter
        Dim TifDocument As String
        Dim User As String
        Dim FaxNo As String
 
 
        'fill in my variables
        FaxNo = Txtbx1.Text
        User = Txtbx2.Text
        FaxRPTtoSend = Txtbx3.Text
 TifDocument = FaxRPTtoSend & ".tif"
        'Converts specified document if multipage it creates a multipage 'tif in fax format for you.
        'go to http://www.verypdf.com/pdf2tif/pdf-to-image-sdk.htm
        PdfConverter.ConvertPDFToImage(FaxRPTtoSend, TifDocument, "", "", 160, 170, 1, PDF2ImageConverter.CompressionType.COMPRESSION_CCITTFAX3, 1, False, True, -1, -1)
        Connection = Txtbx5.Text
        FaxServer.Connect(Connection)
 
 
 
        Try
 
            FaxDocument.Recipients.Add(FaxNo, User)
            FaxDocument.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptNONE
            'The actual document
            FaxDocument.Body = TifDocument
            FaxDocument.DocumentName = Txtbx6.Text
            'Priority
            FaxDocument.Priority = FAX_PRIORITY_TYPE_ENUM.fptHIGH
            'Sends the document
 
            FaxDocument.Submit(Connection)
 
 
 
        Catch ex As Exception
            MsgBox("Fax Error" & vbNewLine & ex.Message)
 
        Finally
            FaxServer.Disconnect()
 
        End Try
    End Sub
 
End Class
[+][-]05.06.2008 at 09:29PM PDT, ID: 21513162

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 02:36AM PDT, ID: 21514582

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 06:30AM PDT, ID: 21516149

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:20AM PDT, ID: 21516632

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:27AM PDT, ID: 21516736

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:28AM PDT, ID: 21516743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:41AM PDT, ID: 21516921

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:45AM PDT, ID: 21516964

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:56AM PDT, ID: 21517090

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:59AM PDT, ID: 21517127

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 07:59AM PDT, ID: 21517133

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 08:01AM PDT, ID: 21517142

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 08:32AM PDT, ID: 21517483

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 08:35AM PDT, ID: 21517515

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 09:16AM PDT, ID: 21517913

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 04:18AM PDT, ID: 21572316

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:24AM PDT, ID: 21573959

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 10:55AM PDT, ID: 21608541

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 10:57AM PDT, ID: 21608555

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 11:01AM PDT, ID: 21608605

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 11:04AM PDT, ID: 21608634

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 11:11AM PDT, ID: 21608692

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 11:16AM PDT, ID: 21608736

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Miscellaneous Programming, Visual Studio .NET 2005
Tags: vb.net
Sign Up Now!
Solution Provided By: IT_NERD
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.20.2008 at 11:20AM PDT, ID: 21608762

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 01:28PM PDT, ID: 21610042

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 02:16PM PDT, ID: 21610439

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 09:18AM PDT, ID: 21670627

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628