Simply navigate in Windows explorer to the location of the .bat script.

By default - it is D:\MassHunter\Scripts\Quant\Report

Right-click on it and choose 'edit'. It will open in notepad.

Review the 'description' text at the top of the script. It describes what you must edit to make the script work. Currently it only moves a .csv file - change the .csv to .xls or .pdf, whatever is appropriate. You also need to define the final report folder location - currently it's set to C:\temp\. Modify the C:\temp\ to the directory you want.

Hi David - actually the 'PDF Reporting' is really a misnomer. 'PDF Report Templates' are actually just Python code which can generate any type of file the template is programmed to generate. Currently - all the shipping PDF Report Templates generate PDF output - except for:

Example Report Templates in Quant B.09 which outputs non-PDF output:

Gen_LIMs_xmlOutput.report.xml

Gen_LIMsIntegration.report.xml

QuantCSV.report.xml

You can tell that these produce non-PDF output when you add them to your Quant report method and look at the "destination file" field:

The 4 templates are all in the 'PDF-Reporting' folder. However - their outputs differ, the first is a PDF, the second an XML, the third and fourth are CSVs. And all of these templates are in the same reporting method. So when I generate a report using this reporting method - all 4 reports will be generated and all 4 files will be produced. Any of them can have a post-process script attached to it to copy it to another location.

There are some videos in the Quant videos collection (on the Quant shipping disks/USB) which show how to modify report templates. One of them shows how to use the new PDF Report Builder tool - which can also produce report templates that generate CSV outputs.

Yes - absolutely. As long as the "PDF Reporting" template generates the output you want (CSV, TXT, XML), the batch script we've discussed can be edited to copy that output to whatever location you specify. The important thing is the report template itself. What is it programmed to write? If it writes a PDF - it must be modified to produce a CSV or XML. I'd recommend starting with one of the existing CSV/XML outputting templates and modifying it to suit your needs. The new PDF Report Builder tool can also be configured to generate CSV type reports (and Quant ships with some example CSV outputting PDF Report Builder templates, as well).

Previously when I had been working with postprocessing I found out that spaces give shipping script hard time to locate the file. Below you'll find few notes I made to get it working properly. Let me know if this is enough of if you require more help on this topic.

"

By default this script works on batch reporting mode. In Single Run reporting mode naming of CSV files are bit different and thus we need to enable script to find file to be copied forward. By default script copies filed to C:\Temp\.

When you have done this change the script will copy all csv files it finds inside reporting folder forward. Note that when you create this post process in MH Quant and you're using spaces in data folder or data file names you will need to insert quotes around "$(DestinationFilePath)" argument.