View Report in ASP.NET using VistaDB
-
- Posts: 11
- Joined: Thu Jan 25, 2007 3:30 pm
- Location: Portugal
View Report in ASP.NET using VistaDB
Hi
I have managed to create a report using VistaDB without problems.
In your instructions you say to insert the following:
At start of your program add following code:
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiVistaDBAdapterService());
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiVistaDBDatabase());
How/where do I do this in ASP.NET/VB.NET?
Thanks, Mike.
I have managed to create a report using VistaDB without problems.
In your instructions you say to insert the following:
At start of your program add following code:
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiVistaDBAdapterService());
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiVistaDBDatabase());
How/where do I do this in ASP.NET/VB.NET?
Thanks, Mike.
View Report in ASP.NET using VistaDB
You can do it in static constructor of your web page.
Thank you.
Thank you.
-
- Posts: 11
- Joined: Thu Jan 25, 2007 3:30 pm
- Location: Portugal
View Report in ASP.NET using VistaDB
I am sorry, what do you mean by that?
Thank
Mike
Thank
Mike
View Report in ASP.NET using VistaDB
Place to your webpage following code:
Code: Select all
Shared Sub New()
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiVistaDBAdapterService)
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiVistaDBDatabase)
End Sub
-
- Posts: 11
- Joined: Thu Jan 25, 2007 3:30 pm
- Location: Portugal
View Report in ASP.NET using VistaDB
"Declaration expected" is what I get.
Thanks, Mike
Thanks, Mike
View Report in ASP.NET using VistaDB
You need add reference to Stimulsoft.Report.VistaDBDatabase.dll in your project.
What you get is:
What you get is:
Code: Select all
Public Class WebForm1
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Shared Sub New()
StiConfig.Services.Add(New Stimulsoft.Report.Dictionary.StiVistaDBAdapterService())
StiConfig.Services.Add(New Stimulsoft.Report.Dictionary.StiVistaDBDatabase())
End Sub
End Class