How to Show detail section only with out any space in Active Report

Posted by Sunil Naudiyal on Stack Overflow See other posts from Stack Overflow or by Sunil Naudiyal
Published on 2014-05-29T14:39:00Z Indexed on 2014/06/03 3:28 UTC
Read the original article Hit count: 303

Filed under:

i have a active report without any Page Header , Report Header and no any Footer type section. for more detail see attached image.

enter image description here Now issue is that When we run this report we got space before report detail. for more detail see attached image enter image description here Below is my code

 Assembly asm = Assembly.GetAssembly(this.GetType());
                    System.IO.Stream stre = asm.GetManifestResourceStream(asm.GetName().Name + ".CoverPage.rpx");
                    using (XmlTextReader xr = new XmlTextReader(stre))
                    {
                        arCoverPage.LoadLayout(xr);
                    }  
                    //Get detail for Cover Page
                   AddingReportSection(report, HeaderType.CoverPage);
                    arCoverPage.DataSource = lstCoverPage;
                    arCoverPage.Run();

I want remove this space.so please give me any suggestion/idea

I also tried to set height of page but i am not get sucess.

arCoverPage.PageSettings.DefaultPaperSize = false;
arCoverPage.PageSettings.Gutter = 3.0F;
arCoverPage.PageSettings.Orientation = DataDynamics.ActiveReports.Document.PageOrientation.Portrait;
arCoverPage.PageSettings.PaperHeight = 5.0F;    
this.viReport.Document = arCoverPage.Document;  

© Stack Overflow or respective owner

Related posts about c#-4.0