6 Answers, 1 is accepted
0
hkdave95
Top achievements
Rank 2
answered on 04 Jun 2008, 11:15 PM
Hi
I think I have figured out why it is not displaying at the bottom of the page.
It is because my report viewer is not taking up the height of my page.
My aspx is ...
Can you see why my page is not takin gon the full height ?
Please let me know how to fix it.
Kind Regards
David
I think I have figured out why it is not displaying at the bottom of the page.
It is because my report viewer is not taking up the height of my page.
My aspx is ...
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ReportViewer.aspx.vb" Inherits="ReportViewer" %> |
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title></title> |
<style type="text/css"> |
body, form { width: 100%; height: 100%; } |
</style> |
</head> |
<body> |
<form> |
<div style="height: 100%; width: 90%"> |
<center> |
<telerik:ReportViewer ID="rvReportViewer" runat="server" Height="100%" Width="100%" /> |
</center> |
</div> |
</form> |
</body> |
</html> |
Can you see why my page is not takin gon the full height ?
Please let me know how to fix it.
Kind Regards
David
0
Hello hkdave95,
This is an IE specific problem related to different interpreting of settings according to the doctype. Try this code instead which should work for both IE and Firefox:
Hope this helps.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
This is an IE specific problem related to different interpreting of settings according to the doctype. Try this code instead which should work for both IE and Firefox:
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> |
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" |
Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
<style type="text/css"> |
body, form { width: 100%; height: 100%; } |
.bodycenter { text-align:center; } |
.bodycenter { text-align:-moz-center; } |
</style> |
</head> |
<body class="bodycenter"> |
<form id="form1" runat="server"> |
<div style="height: 100%; width: 90%;"> |
<telerik:ReportViewer ID="rvReportViewer" runat="server" Height="100%" Width="100%" /> |
</div> |
</form> |
</body> |
</html> |
Hope this helps.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
hkdave95
Top achievements
Rank 2
answered on 05 Jun 2008, 05:25 PM
Hi
I am afraid this did not work.
My Viewer still only takes up 1/5th of the page height.
Kind Regards
David
I am afraid this did not work.
My Viewer still only takes up 1/5th of the page height.
Kind Regards
David
0
Hi hkdave95,
I've attached the webapplication I've used for my testing. It initializes the Product Line Sales catalog, so you can hook it up directly if you have the online examples installed. Give it a spin and let us know of the outcome.
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I've attached the webapplication I've used for my testing. It initializes the Product Line Sales catalog, so you can hook it up directly if you have the online examples installed. Give it a spin and let us know of the outcome.
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
hkdave95
Top achievements
Rank 2
answered on 09 Jun 2008, 09:03 PM
Hi
The problem was with the html tag not having a css element telling it to have 100% height and width.
Kind Regards
David
The problem was with the html tag not having a css element telling it to have 100% height and width.
Kind Regards
David
0
Hello hkdave95,
I do not have such a style applied to the html tag either, but it works in the sample I've sent. Have you removed the doctype?
All the best,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I do not have such a style applied to the html tag either, but it works in the sample I've sent. Have you removed the doctype?
All the best,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center