|
|
Job Component |
GetJobLog method |
|
GetJobLog() |
Returns: CRLogEventCollection (which contains a collection of CRLogEvent objects) |
|
The GetJobLog method reads the job log into a collection of CRLogEvent objects which you can use to display on the screen to your users. The Job log contains the same exact information that you would see in the View Job Log function of the Job control window.
Example:
[Visual Basic .NET]
Dim LogColl As ExportBudget.CRLogEventCollection |
Dim LogObj As ExportBudget.CRLogEvent |
Dim nl As String = Chr(13) + Chr(10) |
|
LogColl = myExportBudgetJob.GetJobLog() |
|
If Not (LogColl Is Nothing) Then |
|
' Output the log message to a textbox... |
|
For Each LogObj In LogColl |
TextBox1.Text = TextBox1.Text + LogObj.LogEventMessage + nl |
Next |
|
End If |
[C#]
ExportBudget.CRLogEventCollection LogColl; |
|
LogColl = myExportBudgetJob.GetJobLog(); |
|
if (LogColl != null) |
{ |
// Output the log message to a textbox... |
|
foreach(ExportBudget.CRLogEvent LogObj in LogColl) |
{ |
textBox1.Text += LogObj.LogEventMessage + Environment.NewLine; |
} |
|
} |
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved