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

Changes from v7.x

edited July 2007 in General
Hello all,


I am upgrading a system that used v7.0x and I have come to a slight
problem. There are some parts that use TppCustomPageSetupDialog for some
house-made stuff.

the code being:

procedure TfrmSelec.Paper1Click(Sender: TObject);
var
lPageSetupDlg: TppCustomPageSetupDialog;
lFormClass: TFormClass;

begin
try
lFormClass := ppGetFormClass(TppCustomPageSetupDialog);

lPageSetupDlg := TppCustomPageSetupDialog(lFormClass.Create(Self));
lPageSetupDlg.Report := ppDes1.CurrentReport;
lPageSetupDlg.LanguageIndex := lReport.LanguageIndex;
if (lPageSetupDlg.ShowModal = mrOk) then
begin
lReport.Template.SaveToDatabase;
end;

lPageSetupDlg.Release;
except
MessageDlg('Error Saving Paper setup!',mtError,[mbOk],0);
end;
end;



Sorry if I'm being slightly blunt, but is there any example for this in
a v10.x way?

Thanks.
Andrew S. Vaz

Comments

  • edited July 2007
    - The definition of TppCustomPageSetupDialog has been moved to
    ppDesignerForms.pas. (You can use the Delphi Search | Find in Files dialog
    to search RBuilder\Source and find where classes are defined and used).

    - try adding ppDesignerForms to the uses clause of your source unit and then
    retest.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2007
    > - try adding ppDesignerForms to the uses clause of your source unit and then

    It worked fine. Thanks!!

    Andrew S. Vaz
  • edited July 2007
    Hi Nard et al,

    I am just looking at starting the same process - moving an app from RB 7.03
    Ent to v10. I have overridden much of the standard functionality (eg
    additional RAP, Auto Search Dialog, Preview Window, Explorer, additional
    report components etc).

    Is there documentation anywhere that might assist me in updating - ie what
    has changed between versions? Otherwise, I'll just keep bugging you by
    asking "what has happened to XXX unit/class...".

    Regards
    David



  • edited July 2007
    Hi David,

    There have been numerous drastic changes to ReportBuilder since version 7.03
    especially with the Preview, Designer, Explorer, Report Components, and some
    RAP. We started using a new toolbar architecture for the preview, explorer
    and designer. I included an example below on how to customize these
    toolbars and menus. Take a look at the demo located in the
    \RBuilder\RCL\... directory for an example of how the Report Component
    architecture has changed. For the most part RAP should work the same. Let
    us know if you run into any road blocks.

    http://www.digital-metaphors.com/tips/Designer10_CustomizeMenusAndToolbars.zip

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    Thanks Nico,

    I'll take a look and report back.

    Regards
    David
  • edited July 2007
    Sorry, one more question...

    Is it likely that the report templates that were created via 7.03 would be
    readable in v10, or would we need to somewhow convert those as well?

    I'm not looking for a definitive answer, I just ask on the off chance that
    you might know whether the template structure has changed or remained the
    same across versions.

    btw, we use ASTA (via a DADE that I wrote).

    Regards
    David




  • edited July 2007

    RB 10 can open and run reports creating by prior versions, including RB 7.x.
    The structure is the same, but much like the Delphi VCL, with newer releases
    we often add new properties. (This means that RB 7 cannot open the reports
    saved by RB 10.)

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2007
    Thanks Nard,

    That's a *very* big positive for us.

    Regards
    David
This discussion has been closed.