How to convert a DOC or PDF to TIFF (Fax format) in VB.NET?

J

Jane

Hi, I have written a simple program in VB.NET which can fax a Tiff
image to the Fax Printer connected via fax modem automatically. But
few steps are missing, which is the conversion of DOC or PDF (the
input file format) to TIF format, can anyone help!!!

Thank you in advance.

See coding below:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim FS As Object
Dim FileName As String
Dim JobId As Long
Dim ServerName As String
Dim FD As Object

FS = CreateObject("FaxServer.FaxServer")
ServerName = "ads-jane2k"
FS.Connect(ServerName)

'==== Convert the DOC or PDF file to TIF file here!! ====
FileName = "C:\TEST.TIF"
FD = FS.CreateDocument(FileName)

FD.Faxnumber = "9 2515 3422"
JobId = FD.Send()
End Sub

Best regards,
Jane.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top