nardmoseley
Comments
-
Try setting DetailBand.PrintCount to 6 for the subreport detailband.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
-
Aha, yes the template 'is' the report definition - it's the equivalent of
the '.doc' file for an MS Word document. In MS Word you would open the .doc
file and then modify it. So yes, you need to load the template and then
mod… -
I tried a simple example here and it works great. I created a report with a
summary and then I coded
ppReport1.SummaryBand.Free;
ppReport1.Print;
The report generates without a summary band.
Try crea… -
Close the query and re-open it.
Try something like this...
if myReport.DataPipeline is TppDBPipeline then
begin
lDBPipeline := TppDBPipeline(myReport.DataPipeline);
lDBPipeline.DataSource.DataSe… -
---------------------------------------------------------------
Tech Tip: How to Programmatically Load Reports that were Saved
using the Report Explorer
---------------------------------------------------------------
Try updating to RB 10.04
Regisistered RB 10 users that have not received notification about RB 10.04
should send an email request to info@digital-metaphors.com. Please include
your serial number and registration info.
- check out the code based thread of the tech tips newsgroups for some
examples of creating layouts in code
- in ppRptWiz.pas, see TppLayoutFactory. This class contains a set of class
functions that are used by the repor…- for future reference, please specify in the first post that you are using
RAP code or post to the RAP newsgroup where it is implied
Here is a RAP example that I created. The Report BeforePrint event only
fires prior to the first time you print or preview in RAP (where as in
Delphi it will fire once for preview, again for print, etc.). Therefore I
added a …-------------------------------------------------------
Tech Tip: Printing a Unique Caption for each copy of
of a multi-copy report sent to the printer.
-------------------------------------------------------
- the PageStyle generates as a background layer, thus it generates prior to
anything else on the page. That will not work if you need to print a dynamic
height group header band above the lines. This example shows another
tec…
Try using a PageStyle to draw the graphical elements. A page style can print
as a background layer on the page. To add a page style band to the report,
select Report | PageStyle from the report designer menu. then size the band
- If you could create a simple example using DBDemos and send to
support@digital-metaphors.com, then we can run the example here in the
debugger and see what is happening.
- From a design stand point, I recommend
Try this..
- use the Query Designer Tables page to define the joins for tab2 to tab1
and for tab3 to tab2
- use the Query Deisgner Search page to define a search criteria for
tab3.Inx and for the value specify…
This issue was also emailed to support@digital-metaphors.com and has been
solved.
The problem was caused by using unit level variables. Unit level variables
are global variables. They are not thread-safe and even in a si…
- never call Band.RemoveObject
- to free an object call Object.Free. The object will remove itself from the
Band.Objects[] list by internally setting Object.Band := nil
- to remove an object from a Band without free…
You can try that or here is the code from TppBand.Destroy...very similar to
what are suggesting...
{free each component associated with this band}
for liObject := 0 to FObjects.Count - 1 do
begin
…
You should not need to call FreeDesignControl. Internally RB will
created/destroy the design controls as needed.
As a side note, be aware that starting with RB 9 the RCL architecture was
enhanced....
---------…
- one option is to use the RB DataDictionary component to control what
tables and fields are available. For Oracle, I recommend setting
DataDictionary.UseTableOwnerName to true. If you install your ODAC plug-in
at Delphi desi…
- With the plug-in BPL approach you need to create a base ancestor class
(TmyPlugInBase) and then descedant classes (TMyPluginA, TMyPluginB, etc).
Put the TmyPlugInBase class in a separate unit and package
(myPlugInComm…
- the concept of a plug-in is that you have some code/classes that you want
to dynamically load and use.
- the Delphi package architecture was designed to accomodate this.
- the Delphi IDE and ReportBuilder itself a…
Thanks for the reminder, yes this is something we need to do.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
This is an example provided by a customer. It shows an example of sending
escape codes to the printer.
http://www.digital-metaphors.com/t…
The following is from the Printer thread of the tech tips newsgroup.
------------------------------------------
Tech Tip: Detecting whether Report was
Printed to the Printer
-------------------------------…
Below is a tech tip, check out the Code Based thread of the tech tips
newsgroup for more articles on creating reports in code.
----------------------------------------------------
Tech Tip: Create a Group in Code
---…
When RAP is used there is a TraCodeModule class that contains the programs.
It is possible to programmatically modify and create RAP programs.
- Here is an example of how to create a RAP event-handler.
w…
Try setting the Text property of the combobox rather than the ItemIndex.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
We also encountered some issues getting the TBX combobox to work properly.
Note that in the TppEditToolbar.CreateItems method we call the Loaded
method. This was necessary to get the control to initilialize itself.
I searched Google and Google Groups about this subject a few weeks ago. In a
nutshell, the Borland compilers check for floating point overflow errors but
MS compilers do not. So MS Word ignores the floating point error caused by a …
The TppDBImage has its own blob stream loading logic, check out the
TppDBImage.LoadPicture method in ppCtrls.pas. We are open to suggestions for
improvements to this code - please send any suggested modifications to
support@d…