Page 1 of 1

Preview Control change size - sticonfig

Posted: Wed Feb 14, 2007 5:50 pm
by jing
Hi,

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()


I can't find a method that will let me set the size of the controller ?


thanks

Preview Control change size - sticonfig

Posted: Thu Feb 15, 2007 2:35 am
by Vital
StimulReport does not save size of StiPreviewControl to StiConfig.

Thank you.