|
-
Jul 18th, 2000, 10:36 AM
#1
Thread Starter
Fanatic Member
How do I send a fax through VB code.
The data must also be generated by vb
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 18th, 2000, 12:58 PM
#2
Lively Member
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.
VB 6 Professional Edition
-
Jul 18th, 2000, 01:06 PM
#3
Thread Starter
Fanatic Member
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
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 18th, 2000, 01:08 PM
#4
Monday Morning Lunatic
Once you've selected the FAX: printer driver, it's the same as printing a normal page.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 18th, 2000, 01:21 PM
#5
Thread Starter
Fanatic Member
Thanks I'll give it a try
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 18th, 2000, 01:50 PM
#6
Lively Member
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
VB 6 Professional Edition
-
Jul 28th, 2000, 03:35 AM
#7
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|