selvan M 8.Nov.11 02:20 PM a Web browser Domino DesignerAll ReleasesWindows 2003; Windows 2000; Windows XP
I am trying to export view and save as .CSV file in local drive (c:\)
I am using the below script, There are no error shown on designer screen. But when I run the agent it gives the error popup "Variant does not contain a container” and the file is not generated in local drive.
+++++++
Sub Initialize()
Dim ws As New NotesUIWorkspace
Dim uiview As NotesUIView
Dim view As NotesView
' use the workspace to get the current view
Set uiview = ws.CurrentView
Set view = uiview.View
Dim filenames As Variant
filenames="c:\Test\whatever_title" & ".csv"
If Not(IsEmpty(filenames)) Then
Call ViewCSVPrint (view, filenames(0) )
End If