BOE XI R2 SP2 with Fix Pack 2.3
.NET SDK
I'm trying to schedule a report to a pdf file and then have the instance removed from BOE after the file is created. The file is created with no problems, but the instance is not being removed from BOE. I've tried doing this a couple of different ways:
and
I've also tried setting the Cleanup property before the .SetFromPlugin line and, with the first example, I've also tried setting sched.Destinations.Cleanup = true;
What am I doing wrong?
Thanks!
-Dell
A computer only does what you actually told it to do - not what you thought you told it to do.
.NET SDK
I'm trying to schedule a report to a pdf file and then have the instance removed from BOE after the file is created. The file is created with no problems, but the instance is not being removed from BOE. I've tried doing this a couple of different ways:
Code:
destPI = (DestinationPlugin)destObj[1];
disk = (DiskUnmanaged)destPI;
destOps = disk.ScheduleOptions;
diskOps = new DiskUnmanagedOptions(destOps);
diskOps.DestinationFiles.Add(FileName);
sched.Destinations.Add("DiskUnmanaged");
sched.Destinations[1].SetFromPlugin(disk);
sched.Destinations[1].Cleanup = true;
Code:
destPI = (DestinationPlugin)destObj[1];
disk = (DiskUnmanaged)destPI;
destOps = disk.ScheduleOptions;
diskOps = new DiskUnmanagedOptions(destOps);
diskOps.DestinationFiles.Add(FileName);
sched.Destination.SetFromPlugin(disk);
sched.Destination.Cleanup = true;
What am I doing wrong?
Thanks!
-Dell
A computer only does what you actually told it to do - not what you thought you told it to do.