Copy Attachment
tring sourcePath="",destPath="";
eBAConnection eBACon = CreateServerConnection();
eBACon.Open();
Try
{
FileSystem fs = eBACon.FileSystem;
DMFile fileExcel = fs. GetFile(PathToFileToFormTo);//The path of the parametric form in which the selected account from the ComboBox is registered
DMCategoryContentCollection SourceAttachments = fileExcel.GetAttachments("default");//Importing attachments of parametric form
DMFileContent fl = SourceAttachments[0];
byte[] att = fileExcel.DownloadAttachmentContentBytes("default",fl. ContentName);//Downloading attachments from parametric form
throw new Exception(filename);
DMFile file = fs. GetFile(Path of FormUnTo Load);//The path of the form on which to load your agreement
file. UploadAttachmentContentFromByteArray("default",fl. ContentName,att);//loading agreement.
}
finally
{
eBACon.Close();
RefreshAttachments(Attachment1);
}