It's simple to create reports using printobject in BeasScript
Note: in all scripts an example is inside with selecting printer
Note: if you want to use internal Crystal 11 viewer, you must connect to the report (connectioninfo)
If you work in web, the system take autoamtically the printer defined in station wizzard -> location
printobject=openreport=myreport.rpt
// Define parameter
printobject=setvar=myparam1=<paramvalue1>
printobject=setvar=myparam2=<paramvalue2>
// set printer (exact that name, which is defined in the Windows printer definitions)
tools=printer=getdriversport=name
printobject=crreport=selectprinter=<value_printerdriver>
// and print out
printobject=crreport=printout
|
// open the report
printobject=openreport=<myfile.prt>
// define all parameters
printobject=setvar=myparam1=<paramvalue1>
printobject=setvar=myparam2=<paramvalue2>
// Define count of copies (need beas 9.3 PL 3 HF 1 or newer)
printobject=copies=2
// Print out
printobject=crreport=printout
|
// load report from variable "filename"
printobject=openreport=<filename>
// and save (export with question about format)
printobject=crreport=exportoption=destinationtype=disk
printobject=crreport=exportoption=diskfilename=c:\temp\myreport.pdf
printobject=crreport=exportoption=formattype=pdf
printobject=crreport=export=true
// and export
printobject=crreport=printout
|