Initial viewer size problem
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Initial viewer size problem
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
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Initial viewer size problem
Hello,
Can you please describe your issue in more details.
Also can you please send us a sample project and step by step guide how to reproduce the issue.
Thank you.
Can you please describe your issue in more details.
Also can you please send us a sample project and step by step guide how to reproduce the issue.
Thank you.
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Initial viewer size problem
This problem seems to effect all report projects and can be seen on your own online example: -Aleksey wrote:Hello,
Can you please describe your issue in more details.
Also can you please send us a sample project and step by step guide how to reproduce the issue.
Thank you.
sl.stimulsoft.com
If you navigate to the demo link on this page and use the standard browser zoom options to increase the zoom level to say 200%.
The following keystrokes will do this in Internet Explorer 9: -
Alt+V
Z
2
Once this has zoomed to the 200% magnification, click on the Design Report option to see the problem with the initial sizing of the design window.
This problem is also apparent when using the viewer window through the following code: -
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
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Initial viewer size problem
Hello,
The problem is clear, but now I cannot figure out how can we fix it, because we cannot correctly handle changes of the zoom in the browser itself, as the size of the workspace are returned without taking scale into consideration. Therefore, we can advise you do not change the zoom of the browser.
Thank you.
The problem is clear, but now I cannot figure out how can we fix it, because we cannot correctly handle changes of the zoom in the browser itself, as the size of the workspace are returned without taking scale into consideration. Therefore, we can advise you do not change the zoom of the browser.
Thank you.
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Initial viewer size problem
On this basis how can I change the default initial sizing of the form through code?Aleksey wrote:Hello,
The problem is clear, but now I cannot figure out how can we fix it, because we cannot correctly handle changes of the zoom in the browser itself, as the size of the workspace are returned without taking scale into consideration. Therefore, we can advise you do not change the zoom of the browser.
Thank you.
This would allow me to default to an initial lowest common size for our software.
Thanks in advance for any help you can provide.
--
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
-
- Posts: 135
- Joined: Tue Aug 11, 2009 9:38 am
Initial viewer size problem
Hello,
The problem is fixed. The patch is available in prerelease build of on 14 June 2012.
Thank you.
The problem is fixed. The patch is available in prerelease build of on 14 June 2012.
Thank you.
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Initial viewer size problem
Many thanks for your efforts in resolving this issue.AntonLoz wrote:The problem is fixed. The patch is available in prerelease build of on 14 June 2012.
Also, just to check, has this fix addressed the problem on both the design report window and the report viewer windows (which is displayed when running the following code): -
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
--
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Initial viewer size problem
Hello,
Ok.
Let us know if you need any additional help.
Thank you.
Ok.
Let us know if you need any additional help.
Thank you.
- ChrisCookDev
- Posts: 41
- Joined: Sun May 20, 2012 7:07 pm
- Location: UK
Initial viewer size problem
Just to confirm that the new version has resolved this problem - thank you.Aleksey wrote:Let us know if you need any additional help.
However, the new version has also caused the "Click Print to continue" to maximize when choosing the Print option from the toolbar.
Whilst this isn't a major problem, it does look slightly odd.
--
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
Initial viewer size problem
Hello,
It works "as is". It is necessary behavior.
Thank you.
It works "as is". It is necessary behavior.
Thank you.