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

Upgraded RB - broken code - fixes?

edited October 2003 in General
Upgrading to 7.03 from 6 broke some code . . . any suggestions for fixes?

(i) TppViewer(report.PreviewForm.Viewer).ZoomSetting := zs100Percent;

it doesn't seem to recognise zs100Percent anymore.

Similarly for zsPageWidth in

TppViewer(lReport.PreviewForm.Viewer).ZoomSetting := zsPageWidth;

(ii) I had a 'uses GIFImage' in a uses clause, this now can't be found.

What is it's replacement, or do I just drop it?

(iii) in the lines

datamoduleReportExplorer.ReportExplorer.ItemOptions :=
[ioAllowDesign,ioAllowNew,ioAllowDelete,ioAllowRename,ioAllowMove];
datamoduleReportExplorer.ReportExplorer.FolderOptions :=
datamoduleReportExplorer.ReportExplorer.FolderOptions + [foAllowNew,
foAllowDelete, foAllowRename, foAllowMove];

it doesn't like/recognise any of the io_ or fo_ enumerations any more.

Thanks in advance,

Lauchlan M

Comments

  • edited October 2003
    Hi Lauchlan !

  • edited October 2003
    > > (i) TppViewer(report.PreviewForm.Viewer).ZoomSetting := zs100Percent;


    Well, one down, two to go!

    Thanks Kurt!

    Lauchlan M
  • edited October 2003
    Hi Lauchlan,

    1. Kurt answered this one correctly: Add ppTypes to your "uses" clause.

    2. Add ppGIF to your "uses" clause.

    3. Add ppRptExp to your "uses" clause.

    Check out the new Demo applications for examples of the new units you need
    to add to your "uses" clause for RB 7.03. They are located in the
    \RBuilder\Demos\... directory.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    > 3. Add ppRptExp to your "uses" clause.

    It was already added, so this is not the right answer to this problem . . .

    Thanks

    Lauchlan M
  • edited October 2003
    "Lauchlan M" wrote in message
  • edited October 2003
    Sorry, my mistake.... TppItemOptionType is found in the ppRptExpCommon.pas
    file.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.