Report Preview Window
Report Preview Window
How to focus report preview window?
Report Preview Window
Please set FocusOnLoad property of the Preview control in true.
If you need do this after showing the report please use the following:
Thank you.
If you need do this after showing the report please use the following:
Code: Select all
stiPreviewControl.View.Focus();
Report Preview Window
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?
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?
Report Preview Window
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();
But if you do not want using of StiPreviewControl then the preview form of the report may be focused from any other form in your application in the following way:
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
Thank you.
Report Preview Window
Thanks it works!
Report Preview Window
Let us know if you need any help.
Thank you.
Thank you.