Prakash Babia
Prakash Babia

Reputation: 31

rdlc data not showing in google chrome

Data is not shown in Google Chrome but working in IE and FF . When I am export data, data is shown in exportable format. I am also add bellow code.

// container is either the ReportViewer control itself, or a div containing it. 

function fixReportingServices(container) {
    if ($.browser.safari) { // toolbars appeared on separate lines. 
        $('#' + container + ' table').each(function (i, item) {
            if ($(item).attr('id') && $(item).attr('id').match(/fixedTable$/) != null)
                $(item).css('display', 'table');
            else
                $(item).css('display', 'inline-block');
        });
    }
}

// needed when AsyncEnabled=true. 

Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function () { fixReportingServices('rpt-container'); });

Upvotes: 2

Views: 4193

Answers (3)

Afzal
Afzal

Reputation: 117

Add ZoomMode="PageWidth" and SizeToReportContent="True" attributes to ReportViewer control in Viewer.aspx page.

Example:

<rsweb:ReportViewer ID="ReportViewer" runat="server" Width="100%" Height="100%" ZoomMode="PageWidth" SizeToReportContent="True"></rsweb:ReportViewer>

Upvotes: 3

Gary
Gary

Reputation: 29

ReportViewer needs a height in px. 100% will not work. I hope this helps someone.

Upvotes: 0

Nathan Griffiths
Nathan Griffiths

Reputation: 12756

Chrome is not a supported browser for viewing Reporting Services reports. However there are some workarounds available.

This question has an answer that may be applicable.

Upvotes: 0

Related Questions