access the fax dialog box

  • Thread starter Thread starter Ben Lam
  • Start date Start date
B

Ben Lam

There is a printDialog object but there is no faxDialog object in .net

Is there any way to fire a fax dialog box and catch its print event
and access the settings? the reason i would want to do this is
because we want to use the microsoft fax dialog to set things like fax
numbers, cover pages, etc. and apply it to say 100 documents to be
sent without specifying the settings each time for each 100 documents

thanks
 
There is no fax dialog box in .NET as far as I know. However I can imagine
solving your problem in one way. Please note that Fax printer is just like
any other printer. So you can configure/change normal printer properties for
a fax printer using Print related classes in .NET. However as you mentioned
below those classes don't have fax specific parameters like fax number,
cover page etc. But can we do it in PrintPage event. Handle the PrintPage
event and call FaxDocument.Submit in the handler. FaxDocument is a COM
object that is used to send faxes - you can easily access this object from
any .NET language through COM interop.

The info about Fax COM API is present in MSDN
For Win2000 COM objects refer to
http://msdn.microsoft.com/library/en-us/fax/faxlegacyvb_9tb3.asp
And for WinXP and beyond, refer to
http://msdn.microsoft.com/library/en-us/fax/faxinta_n_3md0.asp

Please note that the mentioned FaxDocument object is not available in
Win2000 Fax COM Object set.

HTH.

PS: My knowledge about print related classes in .NET is limited. I am not
sure if the suggested way above works.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
 
Back
Top