How can I set the width of the outline in a preview form in code? I want to be able to have the preview form show with the outline wide enough to show the entire root node caption.
You can use the TppPrintPreview.AccessoryToolbar to adjust the width of the area to the left of the report viewer in the preview. This will need to be done from an event that fires after the preview form has been created. Something like the following...
uses ppPrvDlg;
procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject); begin TppPrintPreview(ppReport1.PreviewForm).AccessoryToolbar.Width := 400;
Comments
You can use the TppPrintPreview.AccessoryToolbar to adjust the width of the area to the left of the report viewer in the preview. This will need to be done from an event that fires after the preview form has been created. Something like the following...
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you. Works like a champ.
Best Regards,
Tommy