set printer for Crystal Report label Answered

Tayfun Genc

Hi Mr Heigl,

I have problems printing a Crystal label (which should be printed on a specific printer)

I'd like to set a printer named "Etiketten" in beas script.

Unfortunately I didn't understand the documentation.

The following script uses always the default printer:

printobject=setvar=Lieferschein=<documentparams_docentry>
printobject=setvar=Linenum=%sub(<itemrow:38>,1)
printobject=setvar=druckcopy=<anzahleti>
printobject=setvar=sofortdruck=j
printobject=print=Artikeletikett.rpt

I've tried with:

printobject=e_printername=Etiketten

But no success

Thanx in Advance

 

Comments

1 comment

  • Comment author
    Martin Heigl
    • Official comment

    Hello,

    this is a very old code

    please use the newer syntax

    More information see 

    http://www.beascloud.net/docs/help/beasscript/index.html?druckobject.htm

     

     

    printobject=openreport=myreport.prt
    printobject=connectioninfo
    // set quantity of copies (output)
    printobject=setvar=myparam1=<paramvalue1>
    printobject=setvar=myparam2=<paramvalue2>
    printobject=parameter
    printobject=parameter_set
    // set printer (exact that name, which is defined in the Windows printer definitions)
    tools=printer=getdriversport=<insert here the name of printer>
    printobject=crreport=selectprinter=<value_printerdriver>=<value_printername>=<value_printerport>
    printobject=crreport=printout

Please sign in to leave a comment.