1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Dim mySchedulingInfo As SchedulingInfo
mySchedulingInfo = myreport.SchedulingInfo
mySchedulingInfo.RightNow = True
mySchedulingInfo.Type = CeScheduleType.ceScheduleTypeOnce
Dim rfo As ReportFormatOptions = myreport.ReportFormatOptions
rfo.Format = CeReportFormat.ceFormatPDF
rfo.PDFFormat.ExportAllPages = True
query = "SELECT SI_DEST_SCHEDULEOPTIONS, SI_PROGID FROM CI_SYSTEMOBJECTS " & _
"WHERE SI_PARENTID=29 AND SI_NAME='CrystalEnterprise.DiskUnmanaged'"
Dim destinationInfoObjects As InfoObjects = myInfoStore.Query(query)
myInfoObject = destinationInfoObjects(1)
Dim destinationPlugIn As DestinationPlugin
Set destinationPlugIn = CType(myInfoObject, DestinationPlugin)
Dim diskUnmanaged As DiskUnmanaged
Set diskUnmanaged = CType(destinationPlugIn, DiskUnmanaged)
Dim destinationOptions As DestinationOptions
Set destinationOptions = diskUnmanaged.ScheduleOptions
Dim diskUnmanagedOptions As New DiskUnmanagedOptions(destinationOptions) |
Partager