Share via


ExcelServicesJob.GenerateXml Method (Boolean)

Creates the XML file used by the Microsoft.Office.Excel.Server.Addins.ComputeCluster executable file.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public Sub GenerateXml ( _
    CollectResults As Boolean _
)
'Usage
Dim instance As ExcelServicesJob
Dim CollectResults As Boolean

instance.GenerateXml(CollectResults)
public void GenerateXml(
    bool CollectResults
)

Parameters

  • CollectResults
    Type: System.Boolean
    If true, the XML written contains a section that collects the completed results from XML and tabulates the results into a single workbook.

Remarks

The XML file is used to create and execute the Windows Compute Cluster Server 2003 job on the cluster.

This method writes the XML to a web.config file. The web.config file is located on a share in the head node. Following is sample XML.

Examples

<Job xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SoftwareLicense="" MaximumNumberOfProcessors="6" MinimumNumberOfProcessors="1" Runtime="Infinite" IsExclusive="true" Priority="Normal" Name="Parametric Simulation" Project="RDP Demo" RunUntilCanceled="false">
    <Tasks xmlns="https://www.microsoft.com/ComputeCluster/">
        <Task MaximumNumberOfProcessors="1" MinimumNumberOfProcessors="1" Depend="" WorkDirectory="c:\temp\test" Name="ECS" CommandLine="Microsoft.ExcelServices.ExecutionEngine.exe ExcelServicesJob.xmls" IsExclusive="false" IsRerunnable="true" Runtime="Infinite">
            <EnvironmentVariables />
        </Task>
        <Task MaximumNumberOfProcessors="1" MinimumNumberOfProcessors="1" Depend="ECS" WorkDirectory="D:\Work\MS_ECS\Source_Code\Microsoft.ExcelServices.ResultEngine\bin\Debug" Name="ECS6" CommandLine="Microsoft.ExcelServices.ResultEngine.exe http://gillespie/Documents/MonteCarloResults.xlsx \\gillespie\ECSJobFiles\MonteCarloResults{0:yyyyMMdd}.xlsx filesystem false 3,0 C:\temp\Test\ExcelServicesJob.xmls C:\temp\Test2\ExcelServicesJob.xmls C:\temp\Test3\ExcelServicesJob.xmls C:\temp\Test4\ExcelServicesJob.xmls C:\temp\Test5\ExcelServicesJob.xmls C:\temp\Test6\ExcelServicesJob.xmls" IsExclusive="false" IsRerunnable="true" Runtime="Infinite">
            <EnvironmentVariables />
        </Task>
    </Tasks>
</Job>

See Also

Reference

ExcelServicesJob Class

ExcelServicesJob Members

GenerateXml Overload

Microsoft.Office.Excel.Server.Addins.ComputeCluster Namespace