Background Image in Section Report

Posted by: hbkelkar on 23 February 2019, 1:16 pm EST

    • Post Options:
    • Link

    Posted 23 February 2019, 1:16 pm EST

    I am having a Section Report (AR-11) in VB.NET design, which is of size A4. The report contains Page Header, Group Header 1 and 2 and Group Footer1.

    I want to have a background image to the report for whole A4 page.

    How can implement this? Is there any control similar to CrossSectionBox ?

    Please advise.

  • Posted 25 February 2019, 12:55 am EST

    Hello,

    You could use the “Watermark” property of Section Report to have the desired result. Please refer to the attached report for implementing the same.

    Thanks.

    rpt_watermark.zip

  • Posted 25 February 2019, 11:59 am EST

    Wonderful, Not have used this feature till now…

    Solved my purpose,

    Thanks

  • Posted 26 February 2019, 2:41 am EST

    Hello,

    Now, i have stored my Image in Resources, so how can i set watermark image from Resource?

    pls Help

  • Posted 26 February 2019, 3:07 am EST

    Hello,

    You can use the following lines of code to set the image from the resource file.

    
         	Dim sectionReport As New GrapeCity.ActiveReports.SectionReport()
            Dim xtr As New System.Xml.XmlTextReader("..\..\SectionReport1.rpx")
            sectionReport.LoadLayout(xtr)
            xtr.Close()
            sectionReport.Watermark = New Bitmap(My.Resources.myimage)
    	Viewer1.LoadDocument(sectionReport)
    
    

    Hope it helps.

    Thanks.

  • Posted 26 February 2019, 4:30 am EST

    That’s solved my issue…

    Thanks a Ton :slight_smile:

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels