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

Questions between 6.01 vs version 11

edited March 2010 in General
Hello All:

We are upgrading to Delphi7 and eventually to Delphi2010 from Delphi 5
and Reportbuilder 6.01.

We do several specialized things

#1 will the following code still work ???

Procedure DirectppReport1ToMemory;
Var lDevice: TppDevice;
begin
// 1) This Proc first fires ppReport2.PrinttoDevices To Create An Inmemory
Report
// 2) This Proc then calls proc LoadReportTable To load print commands
// into memory table Datamodule1.TBRawRpt
// TBRawReport Is later used to print out the actual report

Try
Screen.Cursor:=CrHourGlass;
ppReport2.PassSetting:= psTwoPass;
//memo1.lines.add('pass setting set psTwoPass');
lDevice := TppDevice.Create(fmReport);
lDevice.PageSetting := psLastPage; // See ppTypes

lDevice.Publisher := ppReport2.Publisher;
ppReport2.CachePages := True;
ppReport2.PrintToDevices;
//showmessage('end report to memory');
LoadRawReportTable; // this procedure creates escape coodes by parsing
the reportbuilder components in memory, getting their text & position
//showmessage('end of dircect pprpt to memory');
Finally
lDevice.Free;
Screen.Cursor:=CRDefault;
End;
end;


#2 we have custom dbedit control which works by over-riding the GetTheText
Function of the
TDBEdit component will this still work ???


#3 what big architecture changes if any have occurred from 6.01 to 11.x ???



thank you

Neil Huhta
Profit Monster Data Systems

Comments

  • edited March 2010
    Hi Neil,

    There have been numerous changes to the architecture of ReportBuilder since
    RB 6 however all Report Templates are still backward compatible.

    1. Looking at your posted code, I do not see anything that shouldn't work
    however I would have to test it to be sure. Reports are still designed the
    same way so if you are parsing a report or page, your original code should
    still work.

    2. There have been some changes to custom components in ReportBuilder.
    Take a look at the \Demos\RCL\... demo and the following article on what has
    been changed.

    http://www.digital-metaphors.com/rbWiki/RCL/Fundamentals/RB_9_Architecture

    As always, if you have any issues, please contact us and we will help you
    during the upgrade process.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2010
    Thank you Nico

    I am so excited about upgrading all of my software. It should go very
    smoothly.

    Neil Huhta



This discussion has been closed.