How do I send a fax through VB code.
The data must also be generated by vb
Printable View
How do I send a fax through VB code.
The data must also be generated by vb
you should be able to set the modem/fax up as a printer object on the system itself. then by building a string and sending to the fax modem, after showing the printer selection screen and choosing the fax modem as output, it should send the fax.
I have not tried this but have seen the fax modem listed as an output device. So this should be easy to accomplish. Sending to the printer is real easy. Need sample code for that let me know.
Anything you can send me will help
I have delt directly with the printer object but I don't know where to start when it comes to faxes
Once you've selected the FAX: printer driver, it's the same as printing a normal page.
Thanks I'll give it a try
here is some simple code for setting up the printer
'dlgprint is the common dialog control
'rtfprint is the richtextbox control, thought you should ' be able to use a textbox control
dlgPrint.Flags = cdlPDReturnDC + cdlPDNoPageNums
If rtfPrint.SelLength = 0 Then
dlgPrint.Flags = dlgPrint.Flags + cdlPDAllPages
Else
dlgPrint.Flags = dlgPrint.Flags + cdlPDSelection
End If
On Error Resume Next
dlgPrint.CancelError = True
dlgPrint.ShowPrinter
' this is if the user selects cancel on the printer ' screen
If Err <> 32755 Then
rtfPrint.SelPrint dlgPrint.hDC
Printer.EndDoc
Else
MsgBox ("No Print out made")
End If
ok, how do i even start?
i would like to send a fax from vb, but first i must
send my data to a word document and then fax it from there?
i tried the sendobject in access to send my report, but
my report format does'nt get faxed. (all the lines and
logos and stuff) and it first asks you for a default user or something like that - how do i answer ok to this from within vb?
any other suggestions would be much appreciated!
maybe right a macro in word that sends out the documents
as soon as it receives it? but what if there's like
3 documents? what about a template?
thanks
Adri