Upgraded RB - broken code - fixes?
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
(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
This discussion has been closed.
Comments
Well, one down, two to go!
Thanks Kurt!
Lauchlan M
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
It was already added, so this is not the right answer to this problem . . .
Thanks
Lauchlan M
file.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com