Problem with two column printing

Posted by: mwester on 4 August 2017, 2:57 pm EST

  • Posted 4 August 2017, 2:57 pm EST

    I've idetified the problem but I haven't been able to find a solution... I'm using a label report to print a two column booklet.  I've set the report heading to re-print at the top of each column, all of which works fine.  The problem is that I have event code in the Heading section that doesn't execute when the heading is printed at the top of the second column.  It works every time for the first column but not the second.

    Has anyone else seen and resolved this problem?  Thanks!

  • Replied 4 August 2017, 2:57 pm EST

    I assume when you say "Heading section" you are referring to a group header. I am also assuming that your code is in the Format event. Try moving the code to the BeforePrint event of your section and see if that improves your success.

    I my experience the Format event for a group header section seems to be related to the DataField value and fires when that value changes or if it is the first display of the section. So if you are using an unbound group header and/or a repeating option and have values that need to be updated the BeforePrint event will give you better results as it should fire prior to any rendering.

  • Replied 4 August 2017, 2:57 pm EST

    Thanks for the reply.  I have tried every event but none seem to work.  What I have noticed is that the event code is executing when it should as in when the values for the Group Heading section change.  The problem seems to be that the event code doesn't execute when a Column Heading is repeated. 

    For example:  In column one of my two column report I have a group titled, "Blue Widgets".  There are enough of these records to spill over to the next column and I have set it to reprint the Heading at the top of a new page or column.

    What I need is for the event code to execute every time the group heading prints and not just every time it changes... or at least some way to know that the group heading has re-printed.

  • Replied 4 August 2017, 2:57 pm EST

    Example(s) of what you have tried could be helpful. The BeforePrint event should be the solution based on the way I am reading your needs. If nothing else works you could set yourself up a calculated field to group on based on a counter for the number of records that fit in a column and the current field you are grouping on.

Need extra support?

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

Learn More

Forum Channels