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

Calc Tab and preview Tab

edited June 2008 in RAP
Good afternoon,
I use Delphi7 and RB 9.03

I would to show the calc tab, but not the preview tab.

Is it possible to do this?

Please, help me.

Nicoletta

Comments

  • edited June 2008

    Here is a simple example to hide the preview tab...

    procedure TForm1.Button1Click(Sender: TObject);
    var
    liPreviewTab: Integer;
    begin
    liPreviewTab := ppDesigner1.Notebook.PageCount-1;
    ppDesigner1.Notebook.SetTabVisible(liPreviewTab, False);
    ppDesigner1.ShowModal;
    end;


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2008
    thank you..
    I used your suggestion...
    but when the windows is openend, also if I checked durung debug, that the
    value is false, I continue to see the tabpage visible however.
  • edited June 2008

    Works in my testing here with RB 10.08.

    If you are using a prior release, download a trial version and give it a
    try.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2008
    no problem...
    I solved the problem.

    In my RB release the method SetTabVisible isn't available (is not public)..

    I used a command that I image is the same of that method :

    ppDesigner1.Notebook.Pages[liPreviewTab].TabVisible := False;


    Thank you very much.

    Nicoletta
This discussion has been closed.