2

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'); });
stealthyninja
  • 10,343
  • 11
  • 51
  • 59
Prakash Babia
  • 31
  • 1
  • 2
  • 6

3 Answers3

3

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>
Aatish Sai
  • 1,647
  • 1
  • 26
  • 41
Afzal
  • 77
  • 8
0

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.

Community
  • 1
  • 1
Nathan Griffiths
  • 12,277
  • 2
  • 34
  • 51
0

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

Gary
  • 29
  • 1