IanWaterman
Programmer
I have created the following code form BO samples and it works fine, for the C drive on my CE server. However, I want to save file on an external drive, but will need to add the username and password, as CE does on the Destination tab. How can I modify this to do that.
'Define destination variables
Dim destination
Dim diskoptions
Dim files
'Create destination object
Set destination = SchInfo.Destination
'Set the destination for the report
destination.SetFromPlugin(report2)
'Create the diskoptions object
Set diskoptions = report2.PluginInterface("").ScheduleOptions
'Create the destination files object
Set files = diskoptions.DestinationFiles
'Set the destination output for the schedule
files.Add("c:\FAD_" & p_facil_id &".txt")
Where p_facil_id is my user parameter to create a unique file name.
Thank you
Ian
'Define destination variables
Dim destination
Dim diskoptions
Dim files
'Create destination object
Set destination = SchInfo.Destination
'Set the destination for the report
destination.SetFromPlugin(report2)
'Create the diskoptions object
Set diskoptions = report2.PluginInterface("").ScheduleOptions
'Create the destination files object
Set files = diskoptions.DestinationFiles
'Set the destination output for the schedule
files.Add("c:\FAD_" & p_facil_id &".txt")
Where p_facil_id is my user parameter to create a unique file name.
Thank you
Ian