nicocizik
Comments
-
Sorry, only the OnReset event is needed. You do not need to initialize the
variable value in the GroupFooterAfterPrint.
--
Regards,
Nico Cizik
Digital Metaphors
Hi David,
No you shouldn't need to worry about this. The workaround I gave was just
for this specific case.
Upon further investigation it is possible to calculate a minimum without the
use of the global varia…Hi David,
Rather than using the variable value to keep track of the minimum value, try
creating a global variable to do so.
1. Inside the top right treeview in the Code workspace (tab), right click
and select "Modul…Hi Chris,
The footerband is designed to print on each page. This makes it tricky to
print only on the last page unless you know how many pages the report is
before it prints.
Have you considered using the summary b…Below is an article on how to do this outside RAP that could be of some
help.
http://www.digital-metaphors…Hi Jens,
You will need to measure the text before it is printed. Since RAP does not
include the functionality to do this, you can easily create a "TextLength"
passthru function that takes a line of text and a font and returns…Hi,
For future reference, please use your real name when posting to these
newsgroups.
This is not a known issue with RAP. There doesn't seem to be very many ways
the OnCalc event could fail. Try removing all the r…Hi Stef,
The easiest way to do this would be to use the DetailBand.BeforePrint event
to check your data values, then change the font and alignment properties of
the components inside the band accordingly. If you need to chang…Hi Richard,
Unfortunately no. It is however on our todo list to add email functionality
to the "Export Each Group as a Separate File" feature. This would allow you
to do this in a single step, no RAP code needed.
…Hi Stef,
If the summary band is of Dynamic height, the remaining components that do
not fit on the last page will be moved to the bottom of the next page. If
the summary band is Static height, all components will be moved to …Hi Paul,
One option is to use the System Variable component and set it to show the
SearchDesc. This will give a description of the autosearch value entered by
the user. If you just would like to show the value entered, you c…Hi Richard,
In some cases (as the queries become more advanced) it may be easier to edit
the SQL as text like you mention.
You can access the SQL object using the TdaSQLBuilder as well. Setting the
TdaSQLBuilder.SQ…Hi Richard,
You should be able to construct the entire SQL query you have below using
the TdaSQLBuilder object.
1. For the sub-select, simply use the TdaSQLCalcFields.AddExpression
routine and enter the select stat…Hi Enrico,
To directly access an object in Delphi from RAP, you will need to create a
pass-thru function. Take a look at the demos located in the \Demos\0.
RAP\1. Main\... directory for some examples of how to do this. There…Hi Gianantonio,
To access a component in the main report from a subreport in RAP, you need
to set up a global reference to that object in the OnGlobalCreate event.
This is similar to the way calculations are made in the main r…Hi Richard,
Sorry for the delay in this response.
Try moving your code to the BeforePrint event and see if that helps. It
seems hiding the detail band from the BeforeGenerate is causing the issue.
--
Reg…Hello,
For future reference, please use your real name when posting to these
newsgroups.
The easiest way to find out which property you need to use in RAP is to
first code your application in Delphi. The TppGroup.B…Hi Steve,
In my quick testing with the DBDEMOS database (Customer table) and RB 11.05,
I was able to set up a lookup list containing all companies in the drop-down
of the autosearch dialog.
My first suggestion would…Hi Goran,
The Footer.BeforePrint event fires too late to hide the entire band. Try
moving your code to the Report.StartPage event instead.
The issue with the HP LaserJet is not known. Does this occur with a
differ…Hi Kevin,
When creating two-pass reports, the first pass is used to make calculations
and determine pagination and spacing. During the second pass, it is
unfortunately too late in most cases to use the calculated information …Hi Dario,
My first suggestion would be to get this working in Delphi before moving it
to RAP code. This way you can trace into the BeforeGroupBreak event and see
if the query you are using actually returns any values. It see…Hi Ingo,
RAP does not natively contain a TextWidth routine. The easiest way to work
around this would be to create a pass-thru function that determines the text
width of a value given a certain font. This could be done using…Hi Richard,
All display format processing is done inside the ppDisplayFormat.pas file.
If you take a look at this file you can see that text values are formatted
using the Delphi routine FormatMaskText and numeric values are f…Hi Mark,
Generally, since RAP does not support sets, we provide special boolean
properties to set the value of a property that use them (such as TFont).
The special properties are usually fairly simple...
Font.…-----------------------------------------
Article: End-User Tech Support
-----------------------------------------
Please understand that Digital Metaphors can only provide tech support to
the Delphi developers that purcha…Hi Luigi,
In this case you will need to keep track of how many times the StartPage
event is called with a page number of "1". Take a look at the following
example on how this can be done in Delphi. It should not be very diff…Hi Luigi,
For ReportBuilder 11, the TppSystemVariable component was enhanced to
display the copy number of the report. Simply set the VarType property to
vtCopyNo or vtCopyNoDesc and the copy number will be printed for each c…Hi Dan,
From RAP, you would need to create a pass-thru function to manually
calculate the width of the text based on the content and font. (using the
TCanvas.TextWidth routine).
Another option is to place both text…Thanks Walter,
I just updated the article.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Hi Ruud,
Excellent work.
Another approach would be to create a report object loop and use the
Subreport.Report property to retrieve the CodeModule.
in How to modify RAP source code that is used in subreports Comment by nicocizik December 2009