Page 1 of 2

Initial viewer size problem

Posted: Wed May 30, 2012 12:02 pm
by ChrisCookDev
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

Initial viewer size problem

Posted: Mon Jun 04, 2012 2:54 am
by Alex K.
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.

Initial viewer size problem

Posted: Thu Jun 07, 2012 6:33 pm
by ChrisCookDev
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.
This problem seems to effect all report projects and can be seen on your own online example: -

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

Initial viewer size problem

Posted: Fri Jun 08, 2012 4:50 am
by Alex K.
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.

Initial viewer size problem

Posted: Fri Jun 08, 2012 6:52 am
by ChrisCookDev
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.
On this basis how can I change the default initial sizing of the form through code?

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

Initial viewer size problem

Posted: Mon Jun 11, 2012 5:10 am
by Anton Lozovskiy
Hello,

The problem is fixed. The patch is available in prerelease build of on 14 June 2012.

Thank you.

Initial viewer size problem

Posted: Tue Jun 12, 2012 9:22 am
by ChrisCookDev
AntonLoz wrote:The problem is fixed. The patch is available in prerelease build of on 14 June 2012.
Many thanks for your efforts in resolving this issue.

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

Initial viewer size problem

Posted: Wed Jun 13, 2012 2:41 am
by Alex K.
Hello,

Ok.
Let us know if you need any additional help.

Thank you.

Initial viewer size problem

Posted: Thu Jun 14, 2012 4:52 pm
by ChrisCookDev
Aleksey wrote:Let us know if you need any additional help.
Just to confirm that the new version has resolved this problem - thank you.

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

Initial viewer size problem

Posted: Fri Jun 15, 2012 5:26 am
by Alex K.
Hello,

It works "as is". It is necessary behavior.

Thank you.