Good Evening All,
I prefer to fish, rather than being given a fish, thus I am merely asking for some advice, thoughts and solid hints to point me in the right direction. I'm skilled with VB6 but have switched over to VB.net in the past year, so I'm having to re-learn this version of Visual Basic.
My client needs to be able to export searched (by selected date), files as pdf and tiff for delivery to their clients. I know its possible based on the SDK 7x and 8x code I'm seeing. The client is aware that this type of search and export will slow down systems during use, but must have the functionality.
I've been reading the source codes, and the developer sections, etc. I'm having issues getting the code to work in my Visual Studio 2010.It appears that the snippets were all designed in sdk 8 or older and many of the processes have changed, or else I am misreading them.
I have successfully built all of my program except for the search and export sections and this is where I am hitting a roadblock. I feel good about having figured out how to get the login to the repository to work properly.
My desired outcome is twofold.
1. Search the repository for any entry that has been created on a particular date range, or a single day. and output the data to the output console via the Console.WriteLine () (Later I will make it output to a xlsx file
2. Based on the list of entries, export copies of the documents to a physical folder on the local server.
Issues I'm seeing so far, the DB.GetEntryPath ( see code in section 1 below from the SDK) keeps being seen as "not declared" even when I declare it using my code ( See section two). I'm also unsure what is going to be the best way to perform the search. From what I'm reading the code snippet should be looking in the statically assigned folder, but I'm not even getting the connection.
I'm willing to ignore the exprt function for another time as I want to thoroughly understand the HOW of the functionality and proper use.
Thanks in advance for any suggestions or ideas!
Brian
SECTION 1
' Retrieves a document.
Dim Doc As LFDocument = DB.GetEntryByPath("\Doc1")
' Indexes the document.
Doc.Index()
' Clears document handles.
Doc.Dispose()
SECTION 2 - Code under execute thus far
Dim ServerName As String = TBServerName.Text, RepositoryName As String = TBRepositoryName.Text
Dim UserName As String = TBLFRepoUserName.Text, UserPassword As String = TBLFRepoPassword.Text
Dim myRegistration As New RepositoryRegistration(ServerName, RepositoryName)
Dim mySession As New Session
Dim searchstartdate As String = DateTimePicker1.Value
Console.WriteLine(ServerName)
Console.WriteLine(RepositoryName)
Console.WriteLine(UserName)
Console.WriteLine(UserPassword)
mySession.LogIn(UserName, UserPassword, myRegistration)
' Retrieves a document.
Dim Doc As LFDocument = Mysession.GetEntryByPath("\Doc1")
' Indexes the document.
Doc.Index()
' Clears document handles.
Doc.Dispose()
'mySession.Close()
'mySession = Nothing
'myRegistration = Nothing