Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
There might be a need that an application need to send multiple files to the FAX server in one single call. While IFaxDocument::ConnectedSubmit Method allows to send a single file to FAX in one call, IFaxDocument2::ConnectedSubmit2 Method can be used to send multiple files. The IFaxDocument2::ConnectedSubmit2 Method can be used only on Windows Vista and later versions.
As in online documentation, the syntax to mention multiple files name/path is as below--
To illustrate plErrorBodyFile, here is an example: The following list of files is submitted as the value of IFaxDocument2::Bodies:
"MyTextFile.txt;AnotherTextFile.txt;MyWordFile.doc".
Also in the documentation it is mentioned that the .pdf format is not supported by the interface. So if a file with .pdf is supplied to be sent to the FAX server, method will fail with error 2.
To understand the usage of the interface/method, you can use “SendFax” sample in Windows SDK for Vista in below path--
%program files%\Microsoft SDKs\Windows\v6.0\Samples\NetDs\Fax\SendFax
SendFax sample is available in C++, C# and VB.NET languages.
Nitin Dhawan
Windows SDK – Microsoft