This is a migrated thread and some comments may be shown as answers.

Problem with Skin

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 05 Mar 2012, 11:11 AM
I am attempting to embed the telerik report viewer into an existing web application and am having problems with the report viewer not displaying correctly (see attachment toolbar.jpg).
I have done plenty of searching around the various forums and have come to the conclusion that the reason for the toolbar not being displayed correctly is because the page's HEAD tag does not contain runat="server".
Unfortunately, our web project requires that runat="server" cannot be set in the head (as other aspects of the application will fail). IS there a way to get the report viewer working in this way?
I have attached the HTML code for a test app which simulates this behaviour.
<head>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:ReportViewer ID="rptViewer" runat="server" SkinsPath="skins" Skin="orange">
        </telerik:ReportViewer>
    </div>
    </form>
</body>
</html>


Many thanks in advance

MIke
 

1 Answer, 1 is accepted

Sort by
0
Chris Gillies
Top achievements
Rank 1
answered on 06 Mar 2012, 10:51 AM
The ASP.NET report viewer is a standard web control and as most, it requires the runat=server in head to register its styling. If that would interfere with your project, you are not bound to use the viewer. You can create your own (Custom Toolbar for the Web ReportViewer), hide only its toolbar and handle relevant actions (export, print) from your own UI or even export directly to whichever format you need without using report viewer. For PDF format, you can show the exported document directly in browser via the PDF browser plug-in.

Cheers
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Chris Gillies
Top achievements
Rank 1
Share this question
or