Edit the Invoice Data XML Script

The invoice data XML script is used to customise or extend the original XML document generated by MineMarket. If extra nodes are required, the XSD that the original XML document is based on must be modified to include the extra nodes. After the XSD has been edited, the Crystal Report RPT file data source must be refreshed in the design environment to display the new nodes.

The names of the default data items included in the invoice XML output can be determined from the InvoiceDataSet.xsd file.

See Invoice Data XML Scripts and sub-topics for further information and examples.

Security Note: You need the Allow script maintenance user group security right in the Scripting user group security rights group for this activity.

Activity Steps

  1. Open the Invoice Data XML Script (script editor).

    The Scripting Ribbon Tab displays.

  2. Edit the C# script.
  3. Ensure the UseScript method returns true.
  4. Ensure that script references are selected:
    1. Note the DLLs that are referenced in the script. The DLLs are listed at the top of the script, after the word "using".
    2. Select the References tab.
    3. Select the required DLLs.
  5. Expand any collapsed regions in the script.

    Note: Collapsed regions do not compile in the MineMarket script editor.

  6. Click the Build icon on the Scripting ribbon tab to compile the script.
  7. Click the Save icon on the Scripting ribbon tab.