Help for UseCustomStore RDL Reports

Posted by: daniel.boss on 12 January 2021, 8:47 pm EST

    • Post Options:
    • Link

    Posted 12 January 2021, 8:47 pm EST - Updated 30 September 2022, 6:29 am EST

    HI

    i’m currently trying to understand the reporting viewer in web with net core 3.1.

    I’m using your sample AR14_ASPNETCORE.

    there i add some new, blank rdl report called “test.rdlx”

    if i use the “settings.UseEmbeddedTemplates(Em…” Code, the blank page showing in the web-viewer.

    But i need to create the used data at runtime, bevor showing the report.

    And about this, i implemented the “UseCustomStore” Part for the settings.

    But with this option, i get allways an error in the web-viewer…with the same blank report.

    Do you have an Idea whats happend, and could help me?

    thanks a lot

    Daniel

  • Posted 13 January 2021, 4:13 pm EST

    Hello,

    Please return “rpt.Report” instead of the “rpt”.

    Thanks,

    Mohit

  • Posted 13 January 2021, 9:00 pm EST

    Thank you Mohit, now it works :slight_smile:

  • Posted 19 January 2021, 6:18 pm EST - Updated 30 September 2022, 6:29 am EST

    Hello Mohit

    i need your help again about the same project.

    Now im going a step forward and set the Datasource at runtime.

    Modify the report with an empty “BandedList” and add some DataSource/DataSet to the report.

    But now i see an error in the Browser : “No data has been set. Please specify either a DataSet or a DataView to use”

    If i delete the BandedList from the Report, no error appears and an blank “paper” is showing.

    But the same Report with same Datasource works in an net.core 3.1 desktop project.

    Do you have any Idea?

    Thanks,

    Daniel

  • Posted 24 January 2021, 3:39 pm EST

    Hello,

    Sorry for the delay!

    Please use the “SetLocateDataSource” instead of the “LocateDataSource” to set the datasource.

    settings.SetLocateDataSource(args =>

    {

    return new DataTable();

                });
    

    Thanks,

    Mohit

  • Posted 25 January 2021, 1:05 am EST

    Thank you for your help! It works now fine.

    But, is it normal that the function “GetReport” is called multiple times on an simple http-get request? With set-Datasource the site is calling 3 times the getrequest(), without datasource 2 times.

    And i tested it, http-get is called 1 time, and the javascript “openReport” ist also calling just 1 time.

  • Posted 1 February 2021, 2:22 am EST

    Hello,

    You can refer to the following link:

    https://www.grapecity.com/forums/ar-dev/customstore-method-called-

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels