Page 1 of 1

Create a new report with code VB.Net

Posted: Mon Feb 15, 2010 2:54 pm
by Rajwill

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?

Create a new report with code VB.Net

Posted: Tue Feb 16, 2010 1:12 am
by Jan
Hello,

Please check attached sample project.

Thank you.

Create a new report with code VB.Net

Posted: Tue Feb 16, 2010 12:53 pm
by Rajwill
Thanks a lot.
:feelgood:

Create a new report with code VB.Net

Posted: Tue Feb 16, 2010 6:17 pm
by Edward
Hi

You are very welcome, we are always glad to help.

Thank you.

Re: Create a new report with code VB.Net

Posted: Tue Aug 20, 2019 6:28 am
by hddadras
tnx
who How to print each row on a template page?

Re: Create a new report with code VB.Net

Posted: Tue Aug 20, 2019 7:11 am
by Lech Kulikowski
Hello,

You can use the NewPageBefore/After property.

Thank you.

Re: Create a new report with code VB.Net

Posted: Tue Aug 20, 2019 10:01 am
by hddadras
Lech Kulikowski wrote: Tue Aug 20, 2019 7:11 am Hello,

You can use the NewPageBefore/After property.

Thank you.
do you have any code? or change code attachment in first post?

Re: Create a new report with code VB.Net

Posted: Tue Aug 20, 2019 10:17 am
by Lech Kulikowski
Hello,

Depends on your report structure.
You can set that property for the necessary band component.

Thank you.