Home » Jquery » jquery – Crystal Report not showing up or Any suggestion how to accomplish multiple prints in crystal reports-Exceptionshub

jquery – Crystal Report not showing up or Any suggestion how to accomplish multiple prints in crystal reports-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

enter image description here

I am sending ID in a string array to the Controller.

$.ajax
({
    type: "POST",
    url: "/Invoice/CRExample",
    data: myJSONstring1,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (response) {
        alert(response);
    }
})

The controller receives the ID in string format.

public FileContentResult CRExample(string[] data)
{

    string[] newString = data;
    Invoice invoice = new Invoice();
    for (int i = 0; i < newString.Length; i++)
    if(newString[i] != null)
    {
        invoice.ID = Int32.Parse(newString[i]);
        invoice.confirmaData();
        return PrintFee(invoice.ID);
    }

    return PrintFee(invoice.ID);
}

But I am not sure how the handle multiple prints. Any suggestions will be helpful.

How to&Answer: