Batch Scripting (Command Line) Printing

Description

Intention is to show the following possibilities:

i.Generating report of one object reference

ii.Generating reports of multiple object references

iii.Generating reports of object references result of a filter

iv.Generating report of “General” report type

v.Transferring parameter values to report

Procedure

i.Run CmWinClient.exe. Example command line:

C:\cm\cm676\system\CmWinClient.exe -db=test0603 -user=cmadmin -passw=cmadmin -script= C:\TEMP \print.cms

 

ii.SCRIPT command line:

a.To generate report (e.g. Locationdetail) of one object reference

Hint: The argument object has no “s” at the end

print: object=|20071021|oneworld|3|5, report=Locationdetail, path= C:\TEMP, onereportperobject=yes, overwrite=yes

 

b.To generate report (e.g. Locationdetail) of multiple object references

Hint: The argument objects has an “s” at the end

Hint: With or without spacing after semicolon doesn’t matter

print: objects=|20071021|oneworld|3|5;|20071021|oneworld|3|6;|20071021|oneworld|3|7, report=Locationdetail, path= C:\TEMP, onereportperobject=yes, overwrite=yes

 

c.To generate report (e.g. Locationdetail) of object references result of a filter

print: filter=CH B15 MH0392_, report=Locationdetail, path=C:\TEMP, onereportperobject=yes, overwrite=yes

 

d.To generate report of “General” report type

print: report=CommonReport1, path=C:\TEMP

 

e.To generate report (e.g. Locationdetail) of object references result of a filter and to transfer parameter values to report

print: filter=CH B15 MH0392_, report=Locationdetail, path=C:\TEMP, onereportperobject=yes, overwrite=yes, A=1, B=text