digitalmetaphors
Comments
-
Yes, some timing changed in RB for our Server Edition 7.0 and this resulted
in a couple changes to the Dynamic Subreport Loading demo.
Cheers,
Jim Bennett
Digital Metaphors
-
What version of RB are you using? There was a change to the demo for RB 7.
If you are using an older version of RB, then try modifying the code in the
demo to look like this in the LoadSubreport procedure:
procedure TmyDynamicLo… -
When each subreport gets a chance to print the Subreport.OnPrint event
fires. You cold try that event. Then there is the embedded Subreport.Report
events. Click on the greyed out report icon between the two rulers in the
layout worksp… -
You can create a main report which has subreports in its detail band. The
main report will be Report.DataPipeline := nil. Then each subreport will get
one chance to print. Set each Subreport.PrintBehavior := pbSection. See the
main re… -
The blank first page is probably caused by the fact that the first component
to generate in the report is a section style subreport. Change the first
subreport to be printed to be a child type subreport and it should begin
printing on… -
You don't need a subreport if you have only one dataset. Create a group
based on a variable where the variable's OnGetText is coded such that it
retrieves the first letter of the last name field. Here is an example:
in How To Comment by digitalmetaphors August 2003 -
Hi Yannis, you're right it does get fired twice even on a simple report with
a subreport. The engine is being initialized in two cases because it appears
that it how it has to work. It fires when the main report begins generating
for … -
Hi Yannis,
The dynamic subreport loading demo is atypical. It loads a report template
after the main report has begun generating. This is problably why the events
fires twice because it has to be initialized for the new template… -
This is the designed behavior. Here is an article on this topic.
------------------------------------------------------------------
Tech Tip: Subreport header/footer bands do not print for
Child type subreports.
… -
The problem is the pagination changes because your code is manipulating the
layout when it runs. You'll have to reload the report template to
reinitialize the footprint of the report so that your code can run the same
for each pass of… -
Hi Chris,
We received your demo. The problem is that the report is two pass and the
pagination of the first page changes as a result of the code you have in the
report during the first pass. The pagination can't be different for… -
Can you send us a minimal example that reproduces the problem. This is the
only way we can debug and fix an error either if it is in your code or in
our code. A demo would be the fastest way for us to solve the problem.
Please send al… -
Hi Chris,
Those errors are caused by ppTypes missing from the uses clause. In order to
add new features to RB 7 we had to remove those types from ppViewr.pas.
Cheers,
Jim Bennett
Digital Metaphors
Which version did you download? Those are dcus that are only included in the
Professional and Enterprise editions. If you downloaded RB Standard then you
won't have those dcu's available to run an end user application you created
in R…Hi Chris,
I meant that you should evaluate RB 7.03 trial edition to see if upgrading
to RB 7.03 would fix your problem. Don't try to mix dcu's from one version
to the next in RB as they aren't compatible. If that isn't the case,…Hi Chris,
This sounds like a bug we fixed in RB 7. Can you download the trial edition
of RB 7.03 from our website www.digital-metaphors.com and try to reproduce
the problem using the latest version? The trial's page limit is 5 s…Hi Chris,
Only section style subreports generate headers. What is the
Subreport.PrintBehavior property set to? If it is section style, then this
style of subreport always prints on a new page when it gets a chance to
print.…Hi Kei,
You should only place section style subreports in one band. There should be
no other controls in that band. There is no guarantee that those other
controls will generate correctly, because the section subreport forces th…Hi Kei,
Set the Subreport.PrintBehavior proeprty to pbSection for this subreport.
This will force the subreport to always start on a new page.
Cheers,
Jim Bennett
Digital Metaphors
Hi Richard,
The example you are running only uses one instance of the report. It is
owned by the form and is freed when the form is freed. The report creates a
preview form when it runs that is freed when the preview form is clo…Hi Richard,
In your case you are creating the components at runtime. The report,
subreport and the controls in the report are objects and they will exists
until they are freed. If you don't free the report object or load a newHi William,
When a section subreport gets a chance to print, it always starts on a new
page. In your case, you'll need to use a child subreport so that it starts
on the current page which is generating. If you have many section …Hi,
CachePages being true is not supported when using drill down, because the
current and subsequent pages have to be regenerated and not pulled from the
cache. Having a page cache doesn't make too much sense if you are going to…I updated the demo to go to the first page after expanding all since the
previous pages get expanded too and all the pagination changes. Perhaps the
demo could be expanded to use the text search engine to find the OrderNo for
the firs…Hi,
Drill down is not supported in the outline preview at this time. Here is an
example of expand all with collapsing support. You'll have to code a little
to adapt this example to work in your project, but it is possible to
Hi Rhonda,
In the designer, when you select the crosstab component, the drop down box
should appear on the toolbar so that you can select the datapipeline, just
as you would do for a subreport in the designer. You could also use…The crosstab has its own data pipeline property. Simply set that after you
set the pipeline on the main report. Once you set the pipeline on the main
report, by default, the crosstab gets assigned to the same pipeline when you
create …Hi Rhonda,
In the main report, use the summary band to place the crosstab. The crosstab
has its own data traversal engine and will traverse all the records you
connect through the summary pipeline. There is no need to place it i…Hi Dale,
The first thing I see is that the size of the subreport, image and label are
not set. Also, try using the autosize property of the label too. Everything
else looks ok, such as assigning the band property which is correc…Hi Gary,
Child type subreports do not support page headers and footers. Sounds like
you want a master detail report. You'll have to create a master detail
relationship with the data access and use two separate pipelines. The mas…