Initial viewer size problem
Posted: Wed May 30, 2012 12:02 pm
I'm currently experiencing a problem when the web browser zoom percentage isn't set to 100 percent (something our users with poor eye site will do).
In these cases the initial size of the Viewer window is either too small or too large.
Whilst the Viewer window being too small simply looks untidy the opposite, where the window is too large, prevents the user from accessing the Viewer windows controls.
Could this issue be fixed and/or is it possible to change the default initial sizing of the form through code.
I'm using the following vb.net code to view the report: -
Public Sub ViewReport(ByVal reportResourceName As String)
StiOptions.Viewer.Elements.ShowReportOpenButton = False
StiOptions.Viewer.Elements.ShowPageNewButton = False
StiOptions.Viewer.Elements.ShowPageDeleteButton = False
StiOptions.Viewer.Elements.ShowBookmarksPanel = False
StiOptions.Viewer.SaveReportsButtons.ShowDocumentButton = False
Dim report As New StiReport
Dim a As Assembly = Assembly.GetCallingAssembly()
Using sr As StreamReader = New StreamReader(a.GetManifestResourceStream(reportResourceName))
report.Load(sr.BaseStream)
End Using
report.CalculationMode = StiCalculationMode.Interpretation
report.RegBusinessObject("ReportModel", "ReportModel", Me)
report.Render()
report.Show()
End Sub
Thanks in advance for any help you can provide.
--
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
In these cases the initial size of the Viewer window is either too small or too large.
Whilst the Viewer window being too small simply looks untidy the opposite, where the window is too large, prevents the user from accessing the Viewer windows controls.
Could this issue be fixed and/or is it possible to change the default initial sizing of the form through code.
I'm using the following vb.net code to view the report: -
Public Sub ViewReport(ByVal reportResourceName As String)
StiOptions.Viewer.Elements.ShowReportOpenButton = False
StiOptions.Viewer.Elements.ShowPageNewButton = False
StiOptions.Viewer.Elements.ShowPageDeleteButton = False
StiOptions.Viewer.Elements.ShowBookmarksPanel = False
StiOptions.Viewer.SaveReportsButtons.ShowDocumentButton = False
Dim report As New StiReport
Dim a As Assembly = Assembly.GetCallingAssembly()
Using sr As StreamReader = New StreamReader(a.GetManifestResourceStream(reportResourceName))
report.Load(sr.BaseStream)
End Using
report.CalculationMode = StiCalculationMode.Interpretation
report.RegBusinessObject("ReportModel", "ReportModel", Me)
report.Render()
report.Show()
End Sub
Thanks in advance for any help you can provide.
--
Chris Cook :: Software Development Manager :: www.genesisit.co.uk