Create a new report with code VB.Net
Create a new report with code VB.Net
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
Hello,
Please check attached sample project.
Thank you.
Please check attached sample project.
Thank you.
- Attachments
-
- 336.PrintTable.zip
- (49.87 KiB) Downloaded 739 times
Create a new report with code VB.Net
Thanks a lot.
:feelgood:
:feelgood:
Create a new report with code VB.Net
Hi
You are very welcome, we are always glad to help.
Thank you.
You are very welcome, we are always glad to help.
Thank you.
Re: Create a new report with code VB.Net
tnx
who How to print each row on a template page?
who How to print each row on a template page?
-
- Posts: 7195
- Joined: Tue Mar 20, 2018 5:34 am
Re: Create a new report with code VB.Net
Hello,
You can use the NewPageBefore/After property.
Thank you.
You can use the NewPageBefore/After property.
Thank you.
Re: Create a new report with code VB.Net
do you have any code? or change code attachment in first post?Lech Kulikowski wrote: ↑Tue Aug 20, 2019 7:11 am Hello,
You can use the NewPageBefore/After property.
Thank you.
-
- Posts: 7195
- Joined: Tue Mar 20, 2018 5:34 am
Re: Create a new report with code VB.Net
Hello,
Depends on your report structure.
You can set that property for the necessary band component.
Thank you.
Depends on your report structure.
You can set that property for the necessary band component.
Thank you.