Object data not showing in preview page

Stimulsoft Reports.WEB discussion
Post Reply
lturk
Posts: 5
Joined: Mon Mar 12, 2018 10:19 pm

Object data not showing in preview page

Post by lturk »

Hi,
I implemented the report but when I click the preview, no data showing.
The same code is working in designer and viewer.
My code is below.
I am waiting your help.
Thank you.

Code: Select all

public async Task<ActionResult> PreviewReportAsync()
{
StiReport report = StiMvcDesigner.GetActionReportObject();
var advancedReportData = GetData();
report.BusinessObjectsStore.Clear();
report.RegBusinessObject("Students", advancedReportData.StudentsData.ToList());
report.RegBusinessObject("Staff", advancedReportData.StaffDetailResultData.ToList());
report.Dictionary.SynchronizeBusinessObjects();
return StiMvcDesigner.PreviewReportResult(report);
}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Object data not showing in preview page

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.
lturk
Posts: 5
Joined: Mon Mar 12, 2018 10:19 pm

Re: Object data not showing in preview page

Post by lturk »

Hi Alex,
Please find the attached requested files.

Thank you.
Attachments
ARB.zip
(4.09 KiB) Downloaded 173 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Object data not showing in preview page

Post by Alex K. »

Hello,

We have found the problem in the preview report when uses business objects and fix it.
Please try to check the following code and let us know about the result:

Code: Select all

public async Task<ActionResult> PreviewReportAsync()
{
    StiReport report = StiMvcDesigner.GetActionReportObject();
    ....
    ....

    //return StiMvcDesigner.PreviewReportResult(report);
    return StiMvcDesigner.DesignerEventResult(report);
}
Thank you.
lturk
Posts: 5
Joined: Mon Mar 12, 2018 10:19 pm

Re: Object data not showing in preview page

Post by lturk »

Hi Alex,
Thank you for helping but it doesn't work.
I tried the below code with business objects and without business objects.

Code: Select all

  public async Task<ActionResult> PreviewReportAsync()
        {
            StiReport report = StiMvcDesigner.GetActionReportObject();
            return StiMvcDesigner.DesignerEventResult(report);
       }
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Object data not showing in preview page

Post by Alex K. »

Hello,

Without business objects this code works, we checked our Demo reports and registered Demo data in the specified action, the report preview worked correctly.

Thank you.
lturk
Posts: 5
Joined: Mon Mar 12, 2018 10:19 pm

Re: Object data not showing in preview page

Post by lturk »

Hi,
Unfortunately, It's not working.
I tried a lot of times.
lturk
Posts: 5
Joined: Mon Mar 12, 2018 10:19 pm

Re: Object data not showing in preview page

Post by lturk »

Alex K. wrote:Hello,

Without business objects this code works, we checked our Demo reports and registered Demo data in the specified action, the report preview worked correctly.

Thank you.
You can find my code in attachment.
Attachments
ARB.zip
(4.24 KiB) Downloaded 174 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Object data not showing in preview page

Post by Alex K. »

Hello,

We again analyzed your code, and could not reproduce the problem on our test cases. Please send us a full project on which we can reproduce and analyze the problem. We can not reproduce it with only a couple of project files.

Thank you.
Post Reply