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

Create a new report with code VB.Net

Post by Jan » Tue Feb 16, 2010 1:12 am

Hello,

Please check attached sample project.

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

Create a new report with code VB.Net

Post by Rajwill » Tue Feb 16, 2010 12:53 pm

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 » Tue Feb 16, 2010 6:17 pm

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 » Tue Aug 20, 2019 6:28 am

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

Re: Create a new report with code VB.Net

Post by Lech Kulikowski » Tue Aug 20, 2019 7:11 am

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 » Tue Aug 20, 2019 10:01 am

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: 3804
Joined: Tue Mar 20, 2018 5:34 am

Re: Create a new report with code VB.Net

Post by Lech Kulikowski » Tue Aug 20, 2019 10:17 am

Hello,

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

Thank you.
Post Reply