digitalmetaphors
Comments
-
This is the merging behavior of the dataviews. They should merge the
dataviews into the main report when you load a template.
What you can do is delete the dataviews from the templates that you are
going to load as subreports. … -
Yes, there was a problem simliar to this. We can email you a patched unit
for 6.03 which addresses this issue. Send an email to
support@digital-metaphors.com requesting this patch.
Cheers,
Jim Bennett
Digi… -
We have released RB 7 for Delphi 5, 6 and 7, which is now the latest
version. You'll have to upgrade to RB 7 in order to use these properties
with the technique Tom spoke of. Contact info@digital-metaphors.com with
your registration … -
RB 4? Yikes. Then my suggestion ain't so great. You need RB 6.03 to use
MasterDataPipeline/MasterFieldLinks and the speed increase is usually worth
it...
At a minimum turn CachePages on so you only have to traverse the data
Aside from the error, which is probably related to the DataSource property
of the detail query not being assigned - linked queries are going to run
slow, perhaps very slow.
Though they require the detail Query to be ordered care…Hi Samuel,
You'll need to override PopupMenuClick as well, in order to assign the event
handlers to correct subreport object:
procedure PopupMenuClick(Sender: TObject); override;
ppSubRpt.pas has some dece…Nope. TppChildReport is hard-coded in the factory method:
TppSubReport.GetChildReport.
One workaround would be to load the reports normally (into your descendant
class) and then use reference style subreports to get them into th…The engine is not going to let us get away with resetting it once. We need
to tell it that it hasn't been initialized because we just loaded a template
without it knowing it.
Instead of Report.Engine.Reset, call these two lines …The detail band engine was getting freed for which the subreport was relying
on. Since the dynamic subreport loading technique in this demo loads the
template after the engine begins generating, you need to reset the
subreport's repo…There was a bug in the Advantage server 6.11 relating to bookmarks on the
dataset. They fixed this and you should use Advantage 6.11a.
There is a Subreport.Report.NoDatabehaviors property in which you can
control how the report …What you can do is place each report in a section style subreport
(Subreport.PrintBehavior) of a single main report. See the main reports demo
#51 and 52 in the RBuilder\Demos\Repors directory for an example.
Cheers,
…Is the main report connected to a data pipeline? The subreport should only
print once in the detail band. Is the crosstab set to ShiftRelativeTo the
subreport?
Cheers,
Jim Bennett
Digital Metaphors
The crosstab should be next to the subreport in the detail band. Imagine
that the crosstab is like the subreport in that it will traverse and print N
detail records. If you place the crosstab in the same detail band as the
subreport …The fix is included in RB 7. I was able to send a patch to Jan because this
was before we released RB 7 for Delphi 5. Please upgrade to RB 7 for Delphi
5. Order from our website www.digital-metaphors.com or contact
info@digital-metap…I've emailed you a patch.
Cheers,
Jim Bennett
Digital Metaphors
Can you send us your simple project? Since you are using JITs then you can
contrive a few records for us and we should be able to reproduce the error
this way. Send it to support@digital-metaphors.com
Cheers,
J…Can you create a report using our demo report explorer which doesn't work
and send us the layout which isn't working to support@digital-metaphors.com
Child type subreports should shift relative to each other.
Cheers,
…Place all of the subreports in the same band of the main report. Set
subreport 2 to ShiftRelativeTo subreport 1. Set subreport 3 to
ShiftRelativeTo subreport 2. ShiftRelativeTo is a property of the child
subreports. Make sure that…If you are only worried about streaming the subreport down, and since the
subreport is loaded dynamically, then you should be able to unload (free)
the subreport in the Report.Template.OnSaveStart event. Then perform a
report object …Here is a link to a report template which does this. Essentially, it
requires the use of a global variable in RAP that points to the TppVariable
so that it can be accessed out of scope from the subreport. Load this
template into a re…No, they are not supported in child type subreports. Child type subreports
print more lie memos, inside of another report, which has control over
pagination, headers and footers. Your options are to use a group on every
page, where …Here is a demo which does this. Go to the third group in the runtime
preview.
http://www.digital-metaphors.com/tips/SubTotalOverGroups.zip
It is not a good idea to place section subreports in a band with other
components. Place another subreport in the band to contain and print the
other components.
Cheers,
Jim Bennett
Digital Metaphors
…That is the behavior I get as well in this tip. We'll have to modify the
project to cache the calculations as an added feature.
Cheers,
Jim Bennett
Digital Metaphors
Sorry, I misunderstood. You can't sum using DBCalcs in the main report over
a subreport connected to a detail dataset. Here is an example which shows
how to use variables inside the subreport to calculate the correct number of
times (…Don't use SummaryBeforeGenerate for any calculations, or any other event
than TppVariable.OnCalc. Only use TppVariables and TppDBCalcs for
calculations. Do not store calculation values inside of Delphi variables.
Cheers,<…Only use TppVariables and their OnCalc event handlers for all calculations.
Do not use the generation events of the bands as they may fire more than
once when the band tries to fit on a page but can't so it has to regenerate
on the ne…I just uploaded it. It's ready for download:)
http://www.digital-metaphors.com/tips/Subreference.zip
Cheers,
Jim Bennett
Digit…Are the field objects correctly defined on the detail data pipeline? You
can toggle the autocreate property on the datapipeline to rercreate the
field objects based on the fields in the dataset. If that doesn't work to
recreate the …Is the detail query ordered by the key linking field and master ordering?
This is the only way that it will work.
Here is an example (uses paradox for demo purposes) that shows what the
linking SQL should look like and also an e…