Programmatically generating a report

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

Programmatically generating a report

Post by Rajwill »

Hi there,

I'm new to Stimulsoft Reports.Net and I'm having difficulties with dynamic report building using vb.nat code
What I want to do is the following:
I have a system (developed in VB.NET) and I need generate reports with several tables and long querys in a dataset.
I need to the generate report have a specific structure like the imagen.


I tried programmatically to create a new StiReport and load the query inside a dataset, the reports just show me the tittle right.

I can't get the structure that i need fo the report.

Is posible create with code this kind of report structure or just i can do it in a designer? :dumb:
Attachments
347.REPORTE.jpg
347.REPORTE.jpg (139.52 KiB) Viewed 3407 times
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Programmatically generating a report

Post by Jan »

Hello,
Rajwill wrote:Hi there,

I'm new to Stimulsoft Reports.Net and I'm having difficulties with dynamic report building using vb.nat code
What I want to do is the following:
I have a system (developed in VB.NET) and I need generate reports with several tables and long querys in a dataset.
I need to the generate report have a specific structure like the imagen.


I tried programmatically to create a new StiReport and load the query inside a dataset, the reports just show me the tittle right.

I can't get the structure that i need fo the report.

Is posible create with code this kind of report structure or just i can do it in a designer? :dumb:
Create required report in report designer. After then switch to Code tab in report designer. You can see report code generated in report designer. Report engine use this code to create report. You can do similar code.

p.s. Please check also attached sample project.

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

Programmatically generating a report

Post by Rajwill »

Thanks for you help.:feelgood:

I get the below error when try to compile the report:
Public Sub Text18__GetValue(ByVal sender As Object, ByVal e As Stimulsoft.Report.Events.StiGetValueEventArgs)
e.Value = ToString(sender, dataReport.estatus, True)
End Sub

Error: Too many arguments

Public Sub Text20__GetValue(ByVal sender As Object, ByVal e As Stimulsoft.Report.Events.StiGetValueEventArgs)
e.Value = Me.Text20.TextFormat.Format(CheckExcelValue(sender, dataReport.fecha))
End Sub

Error: CheckExcelValue is not declare

Could you help me with the error?:dumb:

Thanks in Advace
Rajwill
Posts: 16
Joined: Mon Feb 15, 2010 2:38 pm

Programmatically generating a report

Post by Rajwill »

:sweat:
forget one
Public Function Text36_GetValue_End(ByVal sender As Stimulsoft.Report.Components.StiComponent) As System.String
Return ToString(sender, PageNofMThrough, True)
End Function

Error:Name PageNofMThrough is not declare
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Programmatically generating a report

Post by Edward »

Hi

Please make sure that all Stimulsoft dlls you referenced are all of the same version.

What version did you used?

If error persists, please try also to clear the GAC first, then delete all references from the project and add references to Stimulsft dlls again.

Also please check the project from attachment.

Thank you.
Attachments
349.RuntimeBuildReport.zip
(22.8 KiB) Downloaded 444 times
Rajwill
Posts: 16
Joined: Mon Feb 15, 2010 2:38 pm

Programmatically generating a report

Post by Rajwill »

Sorry, still errors:tire:
I added references to Stimulsft dlls again to my project, currently i used the Ultimate 2009.3 Version.

Do you have any idea which dll are in the roles where I get an error?
CheckExcelValue Not Declare
ToString(sender, dataReport.estatus, True)---Too many arguments
PageNofMThrough Not Declare

Can I use CheckExcelValue,PageNofMThrough and the overload of ToString With VB code? :shame:

Thanks in Advance for your Help..:matrix:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Programmatically generating a report

Post by Edward »

Hi

In order to help you, we need a test project. Could you please send it to support[at]stimulsoft.com with link to this topic?

Thank you.
Post Reply