尝试以编程方式发送带有封面的传真。我在 RightFax (v10.0) 中制作了一个自定义封面,但代码似乎没有选择它,即使我设置了 FCSFileName,它仍然使用在管理实用程序中选择的封面作为默认值。
FaxServer faxServer = new FaxServer();
faxServer.ServerName = "XXX-XX1";
faxServer.Protocol = CommunicationProtocolType.cpNamedPipes;
faxServer.UseNTAuthentication = BoolType.True;
Fax fax = (Fax)faxServer.get_CreateObject(CreateObjectType.coFax);
fax.ToName = "xxxx";
fax.ToFaxNumber = "xxxxxxxxxx";
fax.ToCompany = "XXX, Inc";
fax.FromName = "xxxxx";
fax.HasCoversheet = BoolType.True;
fax.FCSFilename = faxServer.CoverSheets[6].LongFileName; //only example of setting the cover sheet i could find online so far
fax.Attachments.Add(@"c:\Some Invoice.pdf", BoolType.False);
fax.Send();