Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Sub-Reports sometimes not printing... Very strange

edited September 2003 in General
Hello

I have D6 Enterprise and the latest build of RB. The problem I am
having is that under certain conditions the sub-report does not print.

Here is the background...

It uses JIT Pipelines for all the data.
The report looks like this...

HEADER
Detail (Directory Name)
Sub-Report 1 (Directory Permissions)
Sub-Report 2 (Files in the directory)
Sub-Sub-Report 1 (File Permissions
FOOTER

The printing of the Sub-Report 2 is controlled by a Property of the form
the ppReport objects sits on. This form is created - and from it the
report can be printed over and over with different options.

If the user requests to see the files and their permissions - then the
visible property of Sub-Report 2 is set to True. If it is not - then it
is not visible.

If I tell the report to print - with the option to show Sub-Report 2 -
then I can print it over and over - either showing the Sub-Report 2 or
not. This seems to work well. HOWEVER, if I first print it without
showing Sub-Report 2 - then I cannot show it - even if I set the flag to
show it. In the debugger - If first print without showing Sub-Report 2
- then on the Second run of the report ask it to print Sub-Report 2 -
the method GetFieldValue for Sub-Report 2 does not get triggered until I
ask it to go to the second page of the report...

I have Cache Pages set to False (This is what I first suspected)
I have checked in the debugger - and the sub-reports visible property is
set to True
I have called the Reset and the ResetDevices methods of the report.

I am at a loss as to what is causing this. Does anyone have any ideas I
can try?

Bradley
bradley_AT_telus_DOT_net

Comments

  • edited September 2003
    Hi Bradley,

    Please send an example demonstrating this behavior in .zip format to
    support@digital-metaphors.com and we'll find a solution for you as soon as
    possible.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.