Unable to Autoprint the Crystal Report in Sage X3 from web application

 We are creating Sales delivery from web application(Source code Java) into Sage X3 using Soap web services which is succesful. At the same time We are trying to autoprint the delivery crystal report after creating delivery in Sage X3 for which code was written in APRES_CRE action to call the crystal report.

I can see the log in X3 where it shows print configuration but from the document is not printing

Can someone please help me out whether there would be any setup to print the report from outside of Sage X3?

Thanks

Stacey

Top Replies

Parents
  • 0

    Hi Stacey,

    We do the same thing.

    in APRES_CRE action:

    1- We validate the delivery before printing the document

    Gosub AVTBOUT_VAL

    If GERR=0
    Call VALIDATION([F:SDH]SDHNUM) From TRTVENLIVV
    Endif

    2- We print the CR document

    Gosub INIT_ETAT From TRTX3ETA

    WARP_NBRCPY=1

    WARP_RPTCOD(0)="Your CR document"
    WARP_NBRCPY=1
    GYEXPL=1
    Call ALIM_ETAT(1,WARP_NBRCPY,WARP_RPTCOD,WARP_NUMREQ,WARP_NUMLIG,WARP_SEQREQ) From TRTX3ETA
    Call PRINT_ETAT (1,WARP_NUMREQ,YDESTINATION) From TRTX3ETA

    I hope that helps

Reply
  • 0

    Hi Stacey,

    We do the same thing.

    in APRES_CRE action:

    1- We validate the delivery before printing the document

    Gosub AVTBOUT_VAL

    If GERR=0
    Call VALIDATION([F:SDH]SDHNUM) From TRTVENLIVV
    Endif

    2- We print the CR document

    Gosub INIT_ETAT From TRTX3ETA

    WARP_NBRCPY=1

    WARP_RPTCOD(0)="Your CR document"
    WARP_NBRCPY=1
    GYEXPL=1
    Call ALIM_ETAT(1,WARP_NBRCPY,WARP_RPTCOD,WARP_NUMREQ,WARP_NUMLIG,WARP_SEQREQ) From TRTX3ETA
    Call PRINT_ETAT (1,WARP_NUMREQ,YDESTINATION) From TRTX3ETA

    I hope that helps

Children