[DevExpress Support Team: CLONED FROM Q336182: How to print report direct, and print preview via an simple action?]
Hi,
I have tried this:
Dim reportData As IReportDataV2 = DirectCast(ObjectSpace.FindObject(Application.Modules.FindModule(Of ReportsModuleV2)().ReportDataType, New BinaryOperator("DisplayName", "Bill")), IReportDataV2)
Dim report = ReportDataProvider.ReportsStorage.LoadReport(reportData)
With report
report.RequestParameters = False
report.Parameters("p_key").Value = hdr.bill_hdr_key
Dim printTool As New ReportPrintTool(report)
printTool.Print()
End With
Why is it printing a blank report even if it has properly passed the value of the parameter? What am I missing?