<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

ExportFileFormatter

using kCura.WinEDDS; using kCura.WinEDDS.Exporters; using System; using System.Collections.Generic; using System.Text; namespace Relativity.DataExchange.Export { public class ExportFileFormatter : ExportFileFormatterBase { private const string _FILE_PATH_COL_NAME = "FILE_PATH"; private const string _PDF_PATH_COL_NAME = "PDF_PATH"; public ExportFileFormatter(ExportFile exportSettings, IFieldNameProvider fieldNameProvider) : base(exportSettings, fieldNameProvider) { } protected override string GetHeaderLine(List<ViewFieldInfo> columns) { StringBuilder stringBuilder = new StringBuilder(); foreach (ViewFieldInfo column in columns) { string headerColName = GetHeaderColName(column); stringBuilder.AppendFormat($"{base.ExportSettings.QuoteDelimiter}{headerColName}{base.ExportSettings.QuoteDelimiter}{base.ExportSettings.RecordDelimiter}", Array.Empty<object>()); } if (base.ExportSettings.ExportNative) stringBuilder.AppendFormat(string.Format("{0}{1}{2}{3}", base.ExportSettings.QuoteDelimiter, "FILE_PATH", base.ExportSettings.QuoteDelimiter, base.ExportSettings.RecordDelimiter), Array.Empty<object>()); if (base.ExportSettings.ExportPdf) stringBuilder.AppendFormat(string.Format("{0}{1}{2}{3}", base.ExportSettings.QuoteDelimiter, "PDF_PATH", base.ExportSettings.QuoteDelimiter, base.ExportSettings.RecordDelimiter), Array.Empty<object>()); return stringBuilder.ToString().TrimEnd(new char[1] { base.ExportSettings.RecordDelimiter }); } } }