how to set "delivery type" to FTP ?

Is it possible to set the delivery type of a BondScheduleReportTemplate to "FTP" ? If so - how? The last line gives an error.

BondScheduleReportTemplate myBondScheduleReportTemplate = new BondScheduleReportTemplate();
myBondScheduleReportTemplate.Name = "myBondScheduleTemplate";
myBondScheduleReportTemplate.OutputFormat = ReportOutputFormat.CommaSeparatedValues;
myBondScheduleReportTemplate.ShowColumnHeaders = true; myBondScheduleReportTemplate.DeliveryType = "Ftp";

Thanks in advance!

Best Answer

  • @03c56457-9bfe-499b-8780-5db6ead5f2d6

    You can use the following statement to specify the FTP option.

    myBondScheduleReportTemplate.DeliveryType = ReportDeliveryType.Ftp;

    The DeliveryType is enumeration defined as follow.

    namespace ThomsonReuters.Dss.Api.Extractions.ReportTemplates
    {
    public enum ReportDeliveryType
    {
    None = 0,
    Ftp = 1,
    Sftp = 2
    }
    }

Answers