Preview form once okay, once not...
Hi,
I am using RB 7.02 Pro and have a nice problem. In my application I have 6
TppReports, one for own report. I wanted to show preview form allways as
Normal window with size 700 and height 550. I put the following lines to ALL
TppReports:
with (sender as TppReport).PreviewForm do begin
ClientWidth := 700;
ClientHeight := 550;
end;
All TppReports have window state set ot Normal, ZoomPercent to 100 and
ZoomSetting to WholePage. This works for all reports but for two which show
in smaller window. Then I said, ok, let's try it maximized and I have change
to all these six TppReports WindowState to Maximized. Now only those two
show maximized, other 4 show in somewhat bigger window but it is not
maximized.
Now who can understand this and how to properly fix this? I have tried with
one particular report to save it in rtm, then remove component and put new
component, import report and change its name. It didn't worked
Thanks for all Your help in advance!
Best regards,
Goran Brumen
I am using RB 7.02 Pro and have a nice problem. In my application I have 6
TppReports, one for own report. I wanted to show preview form allways as
Normal window with size 700 and height 550. I put the following lines to ALL
TppReports:
with (sender as TppReport).PreviewForm do begin
ClientWidth := 700;
ClientHeight := 550;
end;
All TppReports have window state set ot Normal, ZoomPercent to 100 and
ZoomSetting to WholePage. This works for all reports but for two which show
in smaller window. Then I said, ok, let's try it maximized and I have change
to all these six TppReports WindowState to Maximized. Now only those two
show maximized, other 4 show in somewhat bigger window but it is not
maximized.
Now who can understand this and how to properly fix this? I have tried with
one particular report to save it in rtm, then remove component and put new
component, import report and change its name. It didn't worked
Thanks for all Your help in advance!
Best regards,
Goran Brumen
This discussion has been closed.
Comments
I tried what you described below and was unable to recreate the problem.
Which event are you using to set these values? Try using the
PreviewFormCreate event. Please send a small example demonstrating the
problem to support@digital-metaphors.com in .zip format and we'll find a
solution for you.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com