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

How to display pageFooter at bottom of page instead of under last row of detail section

6 Answers 283 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 04 Jun 2008, 11:04 PM
Hi

I have a report which only prints one detail line.

The pageFooter appears just below this line high up on the page.

How to I force the page footer to appear at the bottom of the report ?

Kind Regards

David

6 Answers, 1 is accepted

Sort by
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 ...
<%@ 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
Steve
Telerik team
answered on 05 Jun 2008, 04:12 PM
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:

<%@ 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
0
Steve
Telerik team
answered on 06 Jun 2008, 12:52 PM
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
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
0
Steve
Telerik team
answered on 10 Jun 2008, 06:52 AM
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
Tags
General Discussions
Asked by
hkdave95
Top achievements
Rank 2
Answers by
hkdave95
Top achievements
Rank 2
Steve
Telerik team
Share this question
or