Create a new report with code VB.Net
Posted: Mon Feb 15, 2010 2:54 pm
Hi,
I'm a Developer and I have a little doubt concerning to create reports with code. I think so this is possible.I have the follow code
Dim report As StiReport
report = New StiReport()
report.ScriptLanguage = StiReportLanguageType.VB
Dim tittle As StiReportTitleBand
tittle = New StiReportTitleBand
tittle.ClientRectangle = New Stimulsoft.Base.Drawing.RectangleD(0, 0.4, 19, 1.6)
tittle.Name = "My Tittle"
tittle.Border = New Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, False, 4, New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black))
titulo.Brush = New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent)
Dim text As StiTextBox
text = New StiTextBox
text.AppendText("text .....")
reporte.Dictionary.Synchronize()
Dim page As StiPage
page = New StiPage()
page.Components.Add(titulo)
reporte.Compile()
reporte.Show()
At this momment I just testing, I would like create a report with code from VB. inside my code I create a StiReport Object, a tiitle and text.
by the momment I trying to show a report with the tittle that I programm in VB. but not show me anything in my web application.
Can you give me some guidance on how to do this would be possible to design the report from VB and it shows?
Or if I'm omitting any instruction or object to make the report?