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

7 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 04 Jun 2008 Link to this post

    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
  2. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 04 Jun 2008 Link to this post

    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
  3. DevCraft banner
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Jun 2008 Link to this post

    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
  5. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 05 Jun 2008 Link to this post

    Hi

    I am afraid this did not work.

    My Viewer still only takes up 1/5th of the page height.

    Kind Regards

    David
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 06 Jun 2008 Link to this post

    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
  7. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 09 Jun 2008 Link to this post

    Hi

    The problem was with the html tag not having a css element telling it to have 100% height and width.

    Kind Regards

    David
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Jun 2008 Link to this post

    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
Back to Top
DevCraft banner