|
SearchResultItemList.ExportToFile Method |
Top Previous Next |
|
Exports the list of items to a file using the current ExportCriteria.
Parameters
strFileName File name to write the export results to.
Remarks
If the file already exists the method overwrites the file.
Example
[Visual Basic]
engineSearch = New SearchEngineClass
engineSearch.SearchCriteria.FileName = "*.txt" engineSearch.SearchCriteria.ContainingText = "search" engineSearch.SearchCriteria.LookIn = "c:\search folder"
Dim listResult As SearchResultItemList = engineSearch.Start( False )
' Export the results to a file
listResult.ExportCriteria.ExportContents = True listResult.ExportCriteria.ExportSurroundingLines = False listResult.ExportCriteria.ExportFormat = ExportFormatType.HTML
listResult.ExportToFile( "C:\Results.html" ) |