Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion� and appreciate your understanding.

Report Viewer container shrunk

Hi there, 

I've created a rdlc report and tried to load it using the report viewer.
Here is how my view looks like:

<h2>ReportView</h2>

<div class="row">
    @(Html.EJ().ReportViewer("viewer").ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local)
.ReportPath("~/Reports/Report1.rdlc")
.ReportServiceUrl("/api/ReportApi")
.DataSources(ds => ds.Name("DataSet1").Value(ViewData["reportDsource"]).Add()))
    </div>

And this is how it renders:


I've inspected its elements and realized that there is a class called "element.style" that sets the height of the report viewer to 24 px every time which is the cause of the issue.

Is there a property in the report view where I can manually set the height of the report view container?
How can I troubleshoot this?




5 Replies

VS Vinoth Srinivasan Syncfusion Team January 8, 2018 06:49 AM UTC

Hi Andrew, 

Thanks for your interest in Syncfusion components. 

We need to set the width and height to the ReportViewer container using style property as shown in below code example to resolve this issue., 

<div style="width:100%; height:100%; position:absolute;"> 
@(Html.EJ().ReportViewer("reportsample") 
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote) 
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/RDLReport")).ReportPath("~/App_Data/GroupingAgg.rdl")) 
</div> 
 

Regards,  
Vinoth S. 



Gökhan April 5, 2020 08:01 PM UTC

I would like to use Report Viewer in my existing page layout. My layout structure is 

<div class="main-container col2-left-layout">
    <div class="container"> 
           <div class="row">
                <div class="col-lg-12">
                    <div style="width:100%; height:100%; position:absolute;">
                          @{Html.EJ().ReportViewer("ReportViewer").ReportPath("~/Sources/reports/invoice.rdl").ReportServiceUrl("/api/ReportApi").Render();}
                     </div>
                </div>
            </div>
        </div>
 </div>

It calculates the height of the ReportViewer_viewerContainer as 
 <div class="e-reportviewer-viewer e-reportviewer-scrollcontainer e-reportviewer-viewercontainer e-waitingpopup e-js" id="ReportViewer_viewerContainer" style="height: 0px; width: 100%; font-size: 8pt;">


VS Vinoth Srinivasan Syncfusion Team April 6, 2020 01:05 PM UTC

Hi Gokhan, 

We request you to share your view and layout.cshtml file with us and it will be helpful for us to provide the solution at the earliest. 

Regards, 
Vinoth S. 



HP Hetal Patel February 25, 2023 06:30 PM UTC

I am running into the same issue. How to change the height of the .e-reportviewer-viewer in angular. by default, it shows "height:114px"; (Inline) How do I change it to 100%?



AM Arumugasami Murugesan Syncfusion Team February 27, 2023 12:02 PM UTC

Hetal Patel,


We have created a support ticket for this issue by using the below link. We will update the further details in the created ticket. If you face any other issues, we suggest you open a new ticket using your account.

https://support.boldreports.com/create


Loader.
Up arrow icon