Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Variable.WordWrap and Report.AbsolutePageCount = 1

edited August 2006 in General
Hello.
I'm using D6 and RB10.04.

SummaryBand contains
DBCalc: CalcType=Sum, Variable: String (CalcType=veReportEnd,
ResetType=veReportEnd, WordWrap=TRUE)
Required
Variable.Value:=CurrToStr(DBCalc.Value)

If the report contains more than one page the Variable.Value is shown
correctly else Variable.Value=0.
Only setting Variable.WordWrap=FALSE gives true value on the screen.

Also I have some suggestion. Suppose that report contains such code

procedure ReportOnInitializeParameters(var aCancel: Boolean);
begin
Report.OutlineSettings.Visible:=plReport['SummaryOnly'] = False;
end;

In the designer this code works fine after selecting PreviewTab for the
second time only.

--
WBR Sergey Kovalev svk@siamed.ru
SIA International Ltd

Comments

  • edited August 2006

    - 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

    - using Memo and RichText for word wrapped text.
    - using 2 TppVariables (no DBCalc) with datatype set to dtCurrency,
    rather than your current approach for performing calculations.

    - Report.OnInitializeParameters and Report.BeforeOpenDataPipelines both fire
    before the dataset has been opened. Therefore do not use datapipeline
    expressions such plReport['SummaryOnly'] in those events.

    - When previewing in the designer, the outline is being configured prior to
    any of the report events firing. I created a patch for RB 10.04 that will
    enable the Report.OnInitializeParameters event to fire prior to the outline
    being configured. To request the patch email support@digital-metaphors.com
    and request it.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.