Debug an Invoice Data XML Script
Activity Steps
- In Visual Studio, add this line of code before the return statement and confirm that the path is valid:Copy
originalDocument.Save(@"C:\Temp\InvoiceScript.xml");
- Start the MineMarket Server and a debug version of the MineMarket Client.
- On the Debug menu, select Attach to Process.
The Attach to Process screen displays.
- In the Available Processes list, select BulkTrak.exe.
- Click Attach.
- In the MineMarket Client, create an invoice and select the Report tab.
The temporary XML file can be examined in an XML editor.
- When debugging is complete, remove the code that created the temporary XML file from the script.
Important: Do not release an invoice data XML containing the temporary code.
- In the Invoice Data XML Script (script editor) in MineMarket, recompile the script and save.