nardmoseley
Comments
-
Make sure that for the ChildReport you have NoDataBehavior set to
ndBlankReport.
When I try it here using RB 7.03 it works.
Try downloading a trial version of RB 7.03 and perform the same test.
Create a si… -
Try setting the NoDataBehaviors to ndBlankReport and use a Label rather than
a Variable. Use the Label OnPrint event to assign the Label.Caption.
--
Nard Moseley
Digital Metaphors
in subreport not printing when empty data Comment by nardmoseley January 2004 -
Reports and ChildReports have a NoDataBehaviors property that can be used to
control what happens when there is not data. See the RBuilder.hlp for
details.
Select the tab displayed at the bottom of the report designer to a… -
You can simply call mySubReport.Free to remove the subreport and destroy the
subreport and all of the objects within it.
To remove any component from the report without freeing it, you can set its
Band property to nil. (i.… -
I think you still need to use the main report's DetailBand.BeforePrint event
to set the DetailBand.Visible property. Perhaps you can create a summary
query to perform some of the calculations.
--
Nard Moseley
Dig… -
You need to use the main report's DetailBand.BeforePrint event to set the
DetailBand.Visible property. For a master/detail report you can check the
detail datapipeline to determine whether there are any related records for
the c… -
1. You can have a main report that is not connected to any datapipeline.
When report/childreport is nil and AutoStop is set to True, the report will
print a single detail band and stop. If AutoStop is False, you must call
Report… -
Try this:
1. Create a summary query that contains a count of the number of detail
records for each master. Use this query as the master query for the main
report.
2. Use a TppVariable in the detail band to count the … -
The enumerated types in ReportBuilder are defined in the ppTypes unit.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
-
-
Approach this incrementally by setting all the Subreport.Visible properties
to False.
Set section 1 to Visible and preview - that should since it is working now.
Set section 1 back to Visible False and then set secti… -
Groups and Sections can both cause the page number to be reset. I cannot
think of anything else.
1. Try creating a very simple example report using the DBDemos data. Build
and test it incrementally to see where the issue a… -
Using RB 7.03 I just performed a test by modifying Demo 52 (dm0052.pas) in
the RBuilder\Demos\Reports\Demo.dpr project.
This report contains 2 sections. If I set each to ResetPageNo of False and
set Report.PassSetting to p… -
You need to assign the datapipelines prior to calling the report. When you
call Report.Print, the report engine initializes all of the datapipelines
connected to reports and child reports.
--
N… -
Use separate datasets for the report. Do not share datasets between the
visual controls on your form and the report.
Each time a subreport generates it will traverse all of the records in the
datapipeline to which it is as… -
Like I said, when I try it here it works for me.
If you still have an issue, try creating a simple example using the DBDemos
data. If you can recreate the issue, then e-mail to
support@digital-metaphors.com in zip format a… -
Setting SkipWhenNoRecords on the detail datapipelines should enable the
master record to be printed.
As a test try commenting out all event-handler code that is associated with
the report.
If you are not using R… -
For the detail datapipelines, set SkipWhenNoRecords to False.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
-
Grouping on a cutom field is tricky, due to the timing of when the report
engine checks for a group break.
Try moving the group from the main report to the subreport. Then in the
OnGetText event reference the DataPipeline[… -
Check that each child subreport is set to ShiftRelativeTo the one directly
above it.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.… -
Access the workspace for the subreport by selecting the tab at the bottom of
the Designer. The ChildReport object will become selected in the object
inspector. You can then set the NoDataBehaviors property.
Simplified clas… -
I did not write that code so I could be wrong. Since it is a margin, it is
added twice.
In ppCtRend there is code like this, where the CaptionWidth is calculated as
the TextWidth and then the margin is added on.
I researched this by looking at the source code. There is a margin of 1588
microns being added to the cell on each side. I calculated this in inches to
be 0.0625 of an inch. The margin is defined as a constant, see ppCTMain,
the…
Not sure I understand the question. If you report layout looks like this:
main report
detail band
subreport1
subreport2
subreport3
Then you want to set subreport2.ShiftRelativeTo…
Here is anexample that you can download...
http://www.digital-metaphors.com/tips/TableOfContents.zip
--
Nard Moseley<…
Try modeling the report layout a different way.
Section style subreports are best used to hook multiple reports together.
One way to do this is to place the section in the summary band. Another is
to create a main report t…
Perhaps in the ColumnFooter.BeforePrint event check something like:
if (Report.CurrentColumn = 1) and not (Report.DataPipeline.Eof) then
{set components to not visible}
else
{set components to visible}
Can you check the main Report.FirstPass and SecondPass properties rather
than the child report's?
--
Nard Moseley
Digital Metaphors
http://www.digit…
Another way to do this is to create a summary query that contains the group
totals.Then you do not the second pass.
--
Nard Moseley
Digital Metaphors
in No SecondPass, Percentage of Total on Rows Comment by nardmoseley February 2004
Please create a simple, minimal Delphi project that demonstrates what you
are trying to accomplish. Use standard Delphi components and the DBDemos
data. E-mail in zip format to support@digital-metaphors.com and we can check
it o…