Angular JS Viewer - Render report after editing the datasource

Posted by: char.efthimiou on 10 January 2022, 1:10 am EST

  • Posted 10 January 2022, 1:10 am EST

    Hello.
    I have found this piece of code :
     using (var reportStream GetType().Assembly.GetManifestResourceStream("RuntimeDataBinding.CallCenterPerformace.rdlx"))
    using (var reader = new System.IO.StreamReader(reportStream))
    {
    var rpt = new GrapeCity.ActiveReports.PageReport(reader);
    var pdfRe = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension();
    var output = new GrapeCity.ActiveReports.Rendering.IO.MemoryStreamProvider();
    rpt.Document.LocateDataSource += (sender, args) =>
    {
    args.Data = dataLayer.GetPerformanceData(startDate, endDate);
    };
    rpt.Document.Render(pdfRe, output);
    return output.GetPrimaryStream().OpenStream();


    Based on that my question would be : What would I need to return(Instead of a PDF rendered stream) to my Angular UI in order to render it with my JSViewer?

    Thank you in advance.
    Ch.E
  • Marked as Answer

    Replied 10 January 2022, 6:03 pm EST

    Your question has been replied on the following post :
    https://www.grapecity.com/forums/activereports/angular--js-viewer---rende
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels