Skip to Content
0
Former Member
Sep 24, 2008 at 07:17 AM

Specify Destination for Scheduled Report in WSSDK?

27 Views

I'm trying to schedule a Crystal Report using the WSSDK. I've got everything ironed out except specifying the filename and folder. The example code for this is:

            Dim oDestination(1) As Destination
            oDestination(0) = New Destination
            oDestination(0).Name = "CrystalEnterprise.DiskUnmanaged"
            Dim diskOptions As New DiskUnmanagedScheduleOptions
            Dim destinationFile(1) As String
            destinationFile(0) = "C:\" + oReport.Name + ".pdf"
            diskOptions.DestinationFiles = destinationFile
            oSchedulingInfo.Destinations = oDestination

This seems simple enough. Only problem is that it doesn't work. If I had to guess I need to figure out some way to send diskOptions to ODestination(0). I checked the C# version and it seems to be the same story.

Can anyone help?

Thanks in advance,

J