Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Outline Width

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.

Comments

  • Hi Tommy,

    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;

    end;
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,

    Thank you. Works like a champ.

    Best Regards,

    Tommy
Sign In or Register to comment.