Report Preview Window
Posted: Tue May 08, 2007 5:52 am
How to focus report preview window?
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
stiPreviewControl.View.Focus();
You should to resolve this in the following way:satisht wrote:Report is a StiReport object
I have used both options but it is giving same error
that ' Object Refrence not set to the instance of object."
1. Report.PreviewControl.FocusOnLoad = True
Report.Compile()
Report.Show()
2. Report.Compile()
Report.Show()
Report.PreviewControl.View.Focus()
How should i resolve this?
Code: Select all
stiPreviewControl1.Report = report;
stiPreviewControl1.Focus();
Code: Select all
Dim form As Object
For Each form In Application.OpenForms
If TypeOf form Is Stimulsoft.Report.Render.StiPreviewForm Then
TryCast(form, Stimulsoft.Report.Render.StiPreviewForm).Focus()
End If
Next