Esempio n. 1
0
        /// <summary>
        /// Extract records from the data source and insert them to the
        /// specified file using the DataLinkProvider
        /// <see cref="DataLink.DataStorage.ExtractRecords"/> method.
        /// </summary>
        /// <param name="fileName">The files where the records be written.</param>
        public object[] ExtractToFile(string fileName)
        {
            mLastExtractedRecords = mProvider.ExtractRecords();
            FileHelperEngine.WriteFile(fileName, mLastExtractedRecords);

            return(mLastExtractedRecords);
        }
Esempio n. 2
0
 /// <summary>
 /// Extract records from the data source and insert them to the specified file using the DataLinkProvider <see cref="DataLink.DataStorage.ExtractRecords"/> method.
 /// </summary>
 /// <param name="fileName">The files where the records be written.</param>
 /// <returns>True if the operation is successful. False otherwise.</returns>
 public bool ExtractToExcel(string fileName)
 {
     mLastExtractedRecords  = mProvider.ExtractRecords();
     mExcelStorage.FileName = fileName;
     mExcelStorage.InsertRecords(mLastExtractedRecords);
     return(true);
 }