Page 1 of 1

Edit page button on preview window

Posted: Thu Apr 19, 2007 8:54 am
by satisht
I have done following code to remove the edit page button from report window but still it is showing on report window

Report.RegData(datSet)
Report.Load(Application.StartupPath + "\resource.mrt")
Dim mainMenu As StiMainMenuService = StiConfig.Services.GetService(GetType(StiMainMenuService))
If Not IsNothing(mainMenu) Then
mainMenu.ShowEdit = False
End If
Report.Compile()
Report.Show()

What should I do to remove that buttom from menubar of preview window?

Edit page button on preview window

Posted: Thu Apr 19, 2007 9:02 am
by Edward
Please use the following code:

Code: Select all

StiOptions.Preview.Window.ShowPageDesignButton = False;
Thank you.

Edit page button on preview window

Posted: Fri Apr 20, 2007 8:08 am
by satisht
Thank You