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

Hidding AccessoryToolbar in Print Preview

edited February 2003 in General
Hi!

I'm doing some tests with RB 7.01 and I wanna show the print preview form
without showing the Accessory ToolBar (this will be the default). Later, if
the user want, he can show it again.

How can i do this ?

I've tried the properties OutlineSettings and TextSearchSettings. All I
could do was hide the objects, but the Accessory panel was still there.

TIA

Jose Carlos
Brazil

Comments

  • edited February 2003
    The easiest way is to create a new component that inherits from TppPreview
    and then register it as the new default Preview window using the following
    code in the main form of the application (where TnewPreview is the name of
    your new class)

    initialization
    TppPreviewPlugIn.UnRegister(TppPreview);
    TppPreviewPlugIn.Register(TnewPreview);

    You will have access to the accessory toolbar in your new class and should
    be able to do what you need to it.

    Paul Hunt


This discussion has been closed.