J
jeffbornolla
Guest
I trying to call the a report that was created from Standalone Telerik Designer using the OpenEdge ABL. My problem is on how to translate the physical path "C:ReportsFolder\Report1.trdp" to "Assembly Qualified Name" which is required by the syntax "typeReportSource1:TypeName". Please Help. I'm a newbie in ABL.
USING Progress.Lang.*.
USING Progress.Windows.Form.
USING System.Windows.Forms.* FROM ASSEMBLY.
USING Progress.Util.* FROM ASSEMBLY.
DEFINE VARIABLE FormObjectRef AS CLASS Progress.Windows.Form NO-UNDO.
DEFINE VARIABLE reportViewer1 AS Telerik.ReportViewer.WinForms.ReportViewer NO-UNDO.
DEFINE VARIABLE uriReportSource1 AS Telerik.Reporting.UriReportSource NO-UNDO.
DEFINE VARIABLE printerSettings1 AS System.Drawing.Printing.PrinterSettings NO-UNDO.
DEFINE VARIABLE standardPrintController1 AS System.Drawing.Printing.PrintController NO-UNDO.
DEFINE VARIABLE reportProcessor1 AS Telerik.Reporting.Processing.ReportProcessor NO-UNDO.
DEFINE VARIABLE typeReportSource1 AS Telerik.Reporting.TypeReportSource NO-UNDO.
FormObjectRef = NEW Progress.Windows.Form().
reportViewer1 = NEW Telerik.ReportViewer.WinForms.ReportViewer().
uriReportSource1 = NEW Telerik.Reporting.UriReportSource().
printerSettings1 = NEW System.Drawing.Printing.PrinterSettings().
standardPrintController1 = NEW System.Drawing.Printing.StandardPrintController().
reportProcessor1 = NEW Telerik.Reporting.Processing.ReportProcessor().
reportProcessor1rintController = standardPrintController1.
typeReportSource1 = NEW Telerik.Reporting.TypeReportSource().
typeReportSource1:TypeName = "C:ReportsFolder\Report1.trdp".
reportProcessor1rintReport(typeReportSource1, printerSettings1).
When I run code on printing, I get this error:
Continue reading...
USING Progress.Lang.*.
USING Progress.Windows.Form.
USING System.Windows.Forms.* FROM ASSEMBLY.
USING Progress.Util.* FROM ASSEMBLY.
DEFINE VARIABLE FormObjectRef AS CLASS Progress.Windows.Form NO-UNDO.
DEFINE VARIABLE reportViewer1 AS Telerik.ReportViewer.WinForms.ReportViewer NO-UNDO.
DEFINE VARIABLE uriReportSource1 AS Telerik.Reporting.UriReportSource NO-UNDO.
DEFINE VARIABLE printerSettings1 AS System.Drawing.Printing.PrinterSettings NO-UNDO.
DEFINE VARIABLE standardPrintController1 AS System.Drawing.Printing.PrintController NO-UNDO.
DEFINE VARIABLE reportProcessor1 AS Telerik.Reporting.Processing.ReportProcessor NO-UNDO.
DEFINE VARIABLE typeReportSource1 AS Telerik.Reporting.TypeReportSource NO-UNDO.
FormObjectRef = NEW Progress.Windows.Form().
reportViewer1 = NEW Telerik.ReportViewer.WinForms.ReportViewer().
uriReportSource1 = NEW Telerik.Reporting.UriReportSource().
printerSettings1 = NEW System.Drawing.Printing.PrinterSettings().
standardPrintController1 = NEW System.Drawing.Printing.StandardPrintController().
reportProcessor1 = NEW Telerik.Reporting.Processing.ReportProcessor().
reportProcessor1rintController = standardPrintController1.
typeReportSource1 = NEW Telerik.Reporting.TypeReportSource().
typeReportSource1:TypeName = "C:ReportsFolder\Report1.trdp".
reportProcessor1rintReport(typeReportSource1, printerSettings1).
When I run code on printing, I get this error:
System.AgumentException: Invalid report type
Continue reading...