I want to run a funtion that exports a Telerik report to pdf if the user checks a checkbox before submitting the page. The report generates but the page won't redirect if the report is generated.
Here is the code in a button click event:
If ChkPrint.Checked = True Then
Dim tF As New TelerikFunctions
Dim rv = New FacilitiesReportsLibrary.WorkOrder
rv.setWorkOrderID = workOrderID
tF.ExportToPDF(rv)
End If
Response.Redirect("../WorkOrders/OpenWorkOrdersSummary.aspx") ' Won't redirect here if report is ran, code just doesn't get here.Here is the code I use to generate the report Public Function ExportToPDF(ByVal reportToExport As Telerik.Reporting.Report) As Telerik.Reporting.Report
Dim reportProcessor As New Te ...
Go to the complete details ...