Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


PhilHouc
2011-04-18T15:27:26Z
Using the API, in en asp.net application, I want to retrieve the full standard output of the tasks.
I use:

foreach (TaskClass tache in job.Tasks)
{
nbTache++;
TextBox1.Text += "\nTask " + nbTache.ToString() + " : " + tache.Name;
TextBox1.Text += "\n\nNumber of characters in StandardOutput = " + tache.Stats.StandardOutput.Length.ToString();
TextBox1.Text += "\n\nOutput\n------";
TextBox1.Text += "\n" + Encoding.ASCII.GetString(tache.Stats.StandardOutput);
TextBox1.Text += "\n---------------------------------------------------------";

}


I only get 2000 characters.

How can I get all the output, that I can see when I use the client?
Sponsor
Forum information
Support
2011-04-18T23:07:25Z
Try this:

serverObj.Jobs.Tasks.GetOutputString(OutputType, Task.JobId, Task.Id, True)
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
PhilHouc
2011-04-19T09:34:53Z
Thank's, it works, but I must add a .tostring() at the end.
Scroll to Top