Equisys technical notes

Technical guidance, explanations and fixes for our products

HOWTO: Forward & resend Faxes sent via the API using the Zetafax Client

Print

ZTN1665

ID: ZTN1665

This Zetafax technical note applies to:

  • Zetafax v2006 and later

Summary

After you have submitted a fax for sending from the API, you cannot forward or resend the fax from the Zetafax Client, even though the fax appears in the Outbox of the Zetafax Client.  There is a workaround to enable it.

More information

In order to resolve the problem, you need to change how you send the fax using the API.  The problem occurs with the attachments to the message.  You must add an empty file to the beginning of the Files collection of the message object in the API.  That is, the empty file must be the first file added to the message’s Files collection.

ZfAPIClass oZfAPI = new ZfAPIClass();

ZfLib.UserSession oUserSession;

ZfLib.NewMessage oNewMessage;

oUserSession = oZfAPI.Logon(" MyUserName" , false);

oNewMessage = oUserSession.CreateNewMsg(); //message to be sent

// create an empty file to add to the start of the message's Files collection

string pathToEmptyFile = @" C:\temp.tmp" ;

// this will create an empty file at the path specified (see .NET documentation)

using (FileStream fs = System.IO.File.Create(pathToEmptyFile))

{

}

oNewMessage.Files.Add(pathToEmptyFile);  // empty file is added first

oNewMessage.Files.Add(pathToRealAttachment1);

oNewMessage.Files.Add(pathToRealAttachment2);

// etc with other attachments

oNewMessage.Send();

With faxes sent in this manner, the problem will be resolved, and you will be able to resend and forward faxes in the Zetafax Client.

Last updated: 10/ 01/08 (PF/DH)

Equisys Logo, Document Management and Expense Management for Business Central
 

Replaced by script
Recent news

Understanding the profitability of projects is often a difficult and cumbersome process, especially if there is a lack of visibility around all the project costs. Getting that visibility of all ...

This article describes the new features and other improvements in the September 2021 update of the Zetadocs Expenses service. Zetadocs Expenses Release ...

North America
 
Equisys Inc
30000 Mill Creek Avenue
Suite 335
Alpharetta, GA 30022
USA
(770) 772 7201
Europe
 
Equisys Ltd
91 Southwark Bridge Road
London
SE1 0AX
United Kingdom
+44 (0)20 7203 4000
 

© Equisys Ltd
All rights reserved

© Equisys Ltd    All rights reserved    Contact    Privacy policy    Cookies