1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to set the Assembly Qualified Name of Telerik in OpenEdge ABL

Discussão em 'StackOverflow' iniciado por fdantas, Maio 28, 2019.

  1. fdantas

    fdantas Administrator Moderador

    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().
    reportProcessor1:printController = standardPrintController1.
    typeReportSource1 = NEW Telerik.Reporting.TypeReportSource().

    typeReportSource1:TypeName = "C:ReportsFolder\Report1.trdp".

    reportProcessor1:printReport(typeReportSource1, printerSettings1).


    When I run code on printing, I get this error:


    System.AgumentException: Invalid report type

    Continue reading...

Compartilhe esta Página