Printing a crystal report via webservices

Has anybody tried printing a crystal report via web services by creating a subprogram? If so, could you please send some examples so I can take a look at what was done to get this accomplished? If not, anybody got any ideas on the best approach for this?

What I was envisioning is that a user will press the print button on our eCommerce site, and the eCommerce site will send a signal to sage when the button is pressed to tell it to print out the report. 

Parents
  • 0

    You can try something like this:

    Local Char TBPAR_BP(15)(1..50),TBVAL_BP(30)(1..50)

    TBPAR_BP(1) = "societe"         : TBVAL_BP(1) = [F:SIH]CPY
    TBPAR_BP(2) = "datedeb"         : TBVAL_BP(2) = [F:SIH]ACCDAT

    # more parameters if needed..
    # replace the report name and printer name
    Call ETAT("ReportName","PrinterName,"",0,"",TBPAR_BP,TBVAL_BP) From AIMP3

Reply
  • 0

    You can try something like this:

    Local Char TBPAR_BP(15)(1..50),TBVAL_BP(30)(1..50)

    TBPAR_BP(1) = "societe"         : TBVAL_BP(1) = [F:SIH]CPY
    TBPAR_BP(2) = "datedeb"         : TBVAL_BP(2) = [F:SIH]ACCDAT

    # more parameters if needed..
    # replace the report name and printer name
    Call ETAT("ReportName","PrinterName,"",0,"",TBPAR_BP,TBVAL_BP) From AIMP3

Children