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
Edit page button on preview window
Please use the following code:
Thank you.
Code: Select all
StiOptions.Preview.Window.ShowPageDesignButton = False;
Edit page button on preview window
Thank You