Page 1 of 1

Programmatically generating a report

Posted: Thu Feb 25, 2010 11:59 am
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:

Programmatically generating a report

Posted: Thu Feb 25, 2010 3:14 pm
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.

Programmatically generating a report

Posted: Fri Feb 26, 2010 3:56 pm
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

Programmatically generating a report

Posted: Fri Feb 26, 2010 4:17 pm
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

Programmatically generating a report

Posted: Fri Feb 26, 2010 6:12 pm
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.

Programmatically generating a report

Posted: Mon Mar 01, 2010 9:17 am
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:

Programmatically generating a report

Posted: Mon Mar 01, 2010 7:24 pm
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.