Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fax to a file on XP/

Status
Not open for further replies.

zjlu2715

Programmer
Apr 5, 2002
23
US
Has anyone tried to use the fax utility on Windows XP to create a fax formated file in VB which then can be delivered & viewed? I tested with WordPad or NotePad, by click on the "Print to File" checkbox. When print starts, a window pops up asking for filename and then print to the given filename.

I tried on VB by calling up .ShowPrinter and setting "Print to File" and it didn't work. Here is the code:
(A common dialogbox is placed on the form, named cdlPrinter to set up the printer)

cdlPrinter.ShowPrinter 'Click Print to File box

Printer.Print "This is a test."
Printer.NewPage
Printer.EndDoc

For regular printers, a Print to File window pops up. But for fax, it doesn't pop up the window. Instead, it simply starts the fax program to prepare for fax through modem. Can anyone tell me what I missed?

Thanx

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top