PPViewer
Hi,
I am fairly new to Report Builder. I am using the Viewer to show my reports
and I was wondering if I could take out the grey border in the viewer when
previewing reports. I do not want any grey area, I want the report to take
up all of the grey space in the viewer. Is this possible? If so, could you
point me in the right direction on how to do this?
Thank You,
Jada Case
I am fairly new to Report Builder. I am using the Viewer to show my reports
and I was wondering if I could take out the grey border in the viewer when
previewing reports. I do not want any grey area, I want the report to take
up all of the grey space in the viewer. Is this possible? If so, could you
point me in the right direction on how to do this?
Thank You,
Jada Case
This discussion has been closed.
Comments
to take out the grey dead area. If you would like to change the zoom when
the preview is shown, you can control the built-in preview form via the
Report.OnPreviewFormCreate event.
For example the following code sets the Print Preview form to maximized and
sets the Viewer ZoomSetting to 100%:
procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
begin
ppReport1.PreviewForm.WindowState := wsMaximized;
TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;
end;
Note: You will need to add ppViewr to the uses clause of your unit, so that
the ZoomSetting enumerated type is recognized by the compiler.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Thank you much for your help!!
Jada Case