on 02-18-2018 6:41 AM
Hi Everyone,
There is a requirement of changing destination of already scheduled reports from FTP to SFTP. It includes updating destination=SFTP, port and fingerprint.
Below are a few dlls (version 14 - SAP Business Objects 4.2) that I am using in a .NET console application:
CrystalDecisions.Enterprise.InfoStore
CrystalDecisions.Enterprise.Framework
I am able to get the destination using
infoObject.SchedulingInfo.Destination.Name but not able to find how to update the port and fingerprint.
Can someone help me here.
foreach (InfoObject infoObject in infoObjects)
{
infoObject.SchedulingInfo.Destination.Name = "CrystalEnterprise.Sftp";
}
Thanks in advance.
Chinmaya
Hi Chinmaya,
You can access the port and fingerprint properties using the SFTP plugin (CrystalDecisions.Enterprise.Dest.SFTP) and the SFTPOptions,
DestinationPlugin plugin = (DestinationPlugin) pluginOptions[CeProgID.SFTP]; //plugin
CrystalDecisions.Enterprise.Dest.SftpOptions options = (CrystalDecisions.Enterprise.Dest.SftpOptions) plugin.ScheduleOptions;
options.Account = "...";
options.ServerName = "...";
options.Port = "...";
options.UserName = "...";
options.Fingerprint = "...";
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.