Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

schedule script to unmanaged disk

Status
Not open for further replies.

hengisglasgow73

IS-IT--Management
Feb 13, 2003
20
GB
I am implementing a schedule script which sets a destination(unmanaged disk), format(PDF) and a parameter.

The script works when its set to SMTP but when changing to Unmanaged disk it ignores my format and parameter selection!

Going beyond script errors is there any other technical consideration for unmanaged disk output that I dont know about(or any hot fix required)

TIA

Hengis
 
Which version of CE are you running, and how are you scripting the Job?

I am sending PDFs to an UnmanagedDisk through a parameter based Scheduled Instance in ePortfolio - using CE 8.5 - and it works fine.
 
I also am 8.5

the script I have set up is a version of the schedule.csp page which allows me to schedule multiple instances from database entries. ie

ID, email destination, parameter, etc

The script is a bit messy because its a version of schedule but I am fairly sure it should work here is the section that does the unmanaged disk biz:

pcol = iStore.Query("SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS WHERE SI_ID="+id);

var Report=pcol.Item(1);

var ScheduleInfo ;
//Create an interface to the scheduling options for the report.
ScheduleInfo = Report.SchedulingInfo;
// Run the report once.
//ScheduleInfo.Type = 0;
// Run it right now.
//ScheduleInfo.RightNow = true;

var Disk;
var DiskSchedulingOptions;
Disk = iStore.Query("Select Top 1* From CI_SYSTEMOBJECTS Where SI_PARENTID=29 and SI_NAME='CrystalEnterprise.DiskUnmanaged'").Item(1);
DiskSchedulingOptions = Disk.PluginInterface("").ScheduleOptions;
DiskSchedulingOptions.DestinationFiles.Add("\\\\SERVERNAME\\pay2\\TEMPFILE.pdf");

ScheduleInfo.Destination.SetFromPlugin (Disk);

//Tell the APS to schedule the report.
//iStore.Schedule (Reports);

This is taken from the sample code.

Any Ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top