예제 #1
0
        private Rdl.PageHeaderFooterType CreateFooter()
        {
            Rdl.PageHeaderFooterType footer    = new Rdl.PageHeaderFooterType();
            HeaderFooterRdlGenerator footerGen = new HeaderFooterRdlGenerator();

            footerGen.Fields = _rpc.Footer;

            footer.Items = new object[]
            {
                (_rpc.FootHeight / 96.0) + "in",
                true,
                true,
                footerGen.CreateItems(),
            };
            footer.ItemsElementName = new Rdl.ItemsChoiceType34[]
            {
                Rdl.ItemsChoiceType34.Height,
                Rdl.ItemsChoiceType34.PrintOnFirstPage,
                Rdl.ItemsChoiceType34.PrintOnLastPage,
                Rdl.ItemsChoiceType34.ReportItems
            };
            return(footer);
        }
예제 #2
0
        private Rdl.PageHeaderFooterType CreateFooter()
        {
            Rdl.PageHeaderFooterType footer = new Rdl.PageHeaderFooterType();
            HeaderFooterRdlGenerator footerGen = new HeaderFooterRdlGenerator();
            footerGen.Fields = _rpc.Footer;
 
            footer.Items = new object[]
                {
                    (_rpc.FootHeight / 96.0) + "in",
                    true,
                    true,
                    footerGen.CreateItems(),
                };
            footer.ItemsElementName = new Rdl.ItemsChoiceType34[]
                {
                    Rdl.ItemsChoiceType34.Height,
                    Rdl.ItemsChoiceType34.PrintOnFirstPage,
                    Rdl.ItemsChoiceType34.PrintOnLastPage,
                    Rdl.ItemsChoiceType34.ReportItems
                };
            return footer;
        }