Create a new report with code VB.Net

Stimulsoft Reports.NET discussion
Post Reply
Rajwill
Posts: 16
Joined: Mon Feb 15, 2010 2:38 pm

Create a new report with code VB.Net

Post 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?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Create a new report with code VB.Net

Post by Jan »

Hello,

Please check attached sample project.

Thank you.
Attachments
336.PrintTable.zip
(49.87 KiB) Downloaded 621 times
Rajwill
Posts: 16
Joined: Mon Feb 15, 2010 2:38 pm

Create a new report with code VB.Net

Post by Rajwill »

Thanks a lot.
:feelgood:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Create a new report with code VB.Net

Post by Edward »

Hi

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

Thank you.
hddadras
Posts: 2
Joined: Tue Aug 20, 2019 5:30 am

Re: Create a new report with code VB.Net

Post by hddadras »

tnx
who How to print each row on a template page?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Create a new report with code VB.Net

Post by Lech Kulikowski »

Hello,

You can use the NewPageBefore/After property.

Thank you.
hddadras
Posts: 2
Joined: Tue Aug 20, 2019 5:30 am

Re: Create a new report with code VB.Net

Post 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?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Create a new report with code VB.Net

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply