How do you change the size of the preview control via StiConfig?
So far, I have
Code: Select all
Stimulsoft.Report.StiConfig.Load()
Dim config As Stimulsoft.Report.Render.StiPreviewConfigService = TryCast(Stimulsoft.Report.StiConfig.Services.GetService(GetType(Stimulsoft.Report.Render.StiPreviewConfigService)), Stimulsoft.Report.Render.StiPreviewConfigService)
config.OpenEnabled = Not RegKey.GetValue("LockReports", True)
config.PageDesignEnabled = Not RegKey.GetValue("LockReports", True)
config.PageDeleteEnabled = Not RegKey.GetValue("LockReports", True)
config.PageNewEnabled = Not RegKey.GetValue("LockReports", True)
config.SaveEnabled = Not RegKey.GetValue("LockReports", True)
config.PageSizeEnabled = Not RegKey.GetValue("LockReports", True)
config.ToolSelectEnabled = Not RegKey.GetValue("LockReports", True)
config.ShowThumbsPanel = Not RegKey.GetValue("LockReports", True)
Stimulsoft.Report.StiConfig.Save()
thanks