Edit page button on preview window

Stimulsoft Reports.NET discussion
Post Reply
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Edit page button on preview window

Post 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?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Edit page button on preview window

Post by Edward »

Please use the following code:

Code: Select all

StiOptions.Preview.Window.ShowPageDesignButton = False;
Thank you.
satisht
Posts: 150
Joined: Mon Apr 09, 2007 12:28 am
Location: Pune

Edit page button on preview window

Post by satisht »

Thank You
Post Reply