executeExportOperationStrings() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors

Function

  • Executes an export previously defined in the client’s database

Syntax

  • StringAry = AeXMLBridge.executeExportOperationStrings(AeClientExport);

Parameters

Return Value

  • Returns a string array containing one string for each line of a presumed text file

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12

TAeClientExport[] exports = ws.getSystemExportsBasic();
// retrieve list of client exports

try
{
string[] exportStrings = ws.executeExportOperationString(exports[0]);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9

Dim exports As TAeClientExport() = ws.getSystemExportsBasic()
' retrieve list of client exports

Try
Dim exportStrings As String() = ws.executeExportOperationString(exports(0))
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • This method may be easier for some programmers to use based upon the development environment they are using
  • If the export file is a text file and each line of the text file can be reliably rendered in a single string, this method will return each line of the file as a string
  • Use getSystemExportsBasic to retrieve a list of exports if needed
  • Note: All fields of theTAeClientExport are used except FileConversionOptionEnum
  • Details on converting a string array to a CSV file have been included under the topic StringArrayToCSV

Possible Errors

  • Invalid dates

executeExportOperation
executeImportOperation
executeReportOperation
executeVendorOperation
getSystemExportsBasic
getSystemImportsBasic
getSystemReportsBasic
getSystemVendorOpsBasic