AR15 Changing SectionReport Line Location

Posted by: frederik.reidinger on 21 October 2021, 10:49 pm EST

    • Post Options:
    • Link

    Posted 21 October 2021, 10:49 pm EST

    Hi,

    i want to change the location of a line (GrapeCity.ActiveReports.SectionReportModel.Line) within a section via vb code.

    I have tried changing the X1/X2-coordinates but doing so has no effect on my line. Same goes for setting its bounds, the location attribute with a new pointF or the left property.

    I have also tried to output the current location of the line or setting it invisible. Both of these actions worked without issues.

    
    Dim oLine As GrapeCity.ActiveReports.SectionReportModel.Line = myLine
    oLine.X1 = 3F
    
    

    would be something i tried as an example close to what is documented.

  • Posted 25 October 2021, 4:28 am EST

    Hello,

    It works at my end. Could you please tell me version that you are using at your end?

    Thanks,

    Mohit

  • Posted 25 October 2021, 7:04 pm EST

    Hello,

    it should be Version 15.1.7.

    Thanks

  • Posted 27 October 2021, 6:09 pm EST

    Hello,

    Please refer to the attached sample. Please see if I am missing something?

    Thanks,

    Mohit

  • Posted 28 October 2021, 10:49 pm EST

    Hello,

    sadly i can’t see any attachments.

    If moving the line in the code works in said version i’ll look into our implementation of the SectionReport again to see if this is an issue on my end.

    Thanks

  • Posted 31 October 2021, 5:42 pm EST

    Hello,

    Sorry, it seems that attachment is not attached properly. Please refer to the attachment

    Thanks,

    Mohit

    SectionReportApplication5.zip

  • Posted 4 November 2021, 7:42 pm EST

    Hello,

    thank you, Mohit! After seeing that the example worked and the code, in essence, was the same, i tried moving my code to a different place.

    As it turns out, the format event of the groupheader section couldn’t change the lines location correctly. When i move my code to the reportstart-event everything works as expected. Shouldn’t changing the line be possible in the sections format event though? “Use this section to set or change the properties of any controls or the section itself.” https://help.grapecity.com/activereports/webhelp/Legacy/ActiveReports6/topic138.html?

    Anyways, thanks for your help and you can see this topic as closed.

Need extra support?

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

Learn More

Forum Channels