Preview form / outline panel
I need to be able to save and restore the width and visibility of the
outline pane in default preview form.
From the PreviewFormClose event I can access the current settings with this
code:
TppPrintPreview(Report.PreviewForm).OutlineViewer.Visible
TppPrintPreview(Report.PreviewForm).OutlineViewer.Width
Problem is, setting these properties from the OnPreviewFormCreate event does
not work.
For example:
TppPrintPreview(Report.PreviewForm).OutlineViewer.Visible := False;
or
TppPrintPreview(Report.PreviewForm).OutlineViewer.Width := 250;
outline pane in default preview form.
From the PreviewFormClose event I can access the current settings with this
code:
TppPrintPreview(Report.PreviewForm).OutlineViewer.Visible
TppPrintPreview(Report.PreviewForm).OutlineViewer.Width
Problem is, setting these properties from the OnPreviewFormCreate event does
not work.
For example:
TppPrintPreview(Report.PreviewForm).OutlineViewer.Visible := False;
or
TppPrintPreview(Report.PreviewForm).OutlineViewer.Width := 250;
This discussion has been closed.
Comments
To control the visibility of the Outline viewer, you will want to use
the OutlineViewer.OutlineVisible property rather than Visible.
It is not currently possible to manually control the width of the
outline viewer from the report. I will research adding this capability
for a later release.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com