How to Show Report in VB.Net .

Stimulsoft Reports.NET discussion
Post Reply
parmarjitesh
Posts: 6
Joined: Fri May 11, 2012 10:09 am
Location: INDIA

How to Show Report in VB.Net .

Post by parmarjitesh »

Dear Sir,
I Am a Crystal reports user....but we find Stimulsoft More Productive so we are evaluating it....
But After a Big Time of 2 Days....I am unable to bind the data table to the report file to show the report.
I can do that easily in Crystal reports for Visual studio but stucked with StimulSoft..
Following are the Steps what i m doing.

I Have Created a .XSD File in the product Folder Named : MST_XML.xsd..
I have created a Table name "MST_CODE_NM" ..

Following is the code i m using to pass datatable to the report.

dt_Print = New DataTable
Dim daRpt As New SqlDataAdapter(New SqlCommand(RptSql, dbCon))
dt_Print.ReadXmlSchema("c:\project\Mst_XML.xsd")

daRpt.Fill(dt_Print)
Dim Report As StiReport = New StiReport()

Report.Load("c:\project\MST_CODE_NM.MRT")

Report.RegData(dt_Print)
Report.Dictionary.Synchronize()


I tried all various methods but frustrated and hence posting here for a positive reply.
Kindly note i have not created any .XML files...Created only a .XSD file and created all the tables in it

parmarjitesh
Posts: 6
Joined: Fri May 11, 2012 10:09 am
Location: INDIA

How to Show Report in VB.Net .

Post by parmarjitesh »

Any Body Please Reply......Cannot do such a simple task.....
Help will be appreciated....
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

How to Show Report in VB.Net .

Post by Stephan1 »

parmarjitesh wrote:Any Body Please Reply......Cannot do such a simple task.....
Help will be appreciated....
Hi,

have you tried the show method ?

Report.show()

cheers

stephan
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

How to Show Report in VB.Net .

Post by Stephan1 »

parmarjitesh wrote:Dear Sir,
I Am a Crystal reports user....but we find Stimulsoft More Productive so we are evaluating it....
But After a Big Time of 2 Days....I am unable to bind the data table to the report file to show the report.
I can do that easily in Crystal reports for Visual studio but stucked with StimulSoft..
Following are the Steps what i m doing.

I Have Created a .XSD File in the product Folder Named : MST_XML.xsd..
I have created a Table name "MST_CODE_NM" ..

Following is the code i m using to pass datatable to the report.

dt_Print = New DataTable
Dim daRpt As New SqlDataAdapter(New SqlCommand(RptSql, dbCon))
dt_Print.ReadXmlSchema("c:\project\Mst_XML.xsd")

daRpt.Fill(dt_Print)
Dim Report As StiReport = New StiReport()

Report.Load("c:\project\MST_CODE_NM.MRT")

Report.RegData(dt_Print)
Report.Dictionary.Synchronize()


I tried all various methods but frustrated and hence posting here for a positive reply.
Kindly note i have not created any .XML files...Created only a .XSD file and created all the tables in it
Have you tried the report.show() Method ?

cheers
parmarjitesh
Posts: 6
Joined: Fri May 11, 2012 10:09 am
Location: INDIA

How to Show Report in VB.Net .

Post by parmarjitesh »

yes the last statement was
report.show....
i forgot to paste it


Following is the code i m using to pass datatable to the report.

dt_Print = New DataTable
Dim daRpt As New SqlDataAdapter(New SqlCommand(RptSql, dbCon))
dt_Print.ReadXmlSchema("c:\project\Mst_XML.xsd")

daRpt.Fill(dt_Print)
Dim Report As StiReport = New StiReport()

Report.Load("c:\project\MST_CODE_NM.MRT")

Report.RegData(dt_Print)
Report.Dictionary.Synchronize()


I tried all various methods but frustrated and hence posting here for a positive reply.
Kindly note i have not created any .XML files...Created only a .XSD file and created all the tables in it



Have you tried the report.show() Method ?

cheers
parmarjitesh Posted: Friday, May 11, 2012 11:48:34 PM
Dear Sir,
I Am a Crystal reports user....but we find Stimulsoft More Productive so we are evaluating it....
But After a Big Time of 2 Days....I am unable to bind the data table to the report file to show the report.
I can do that easily in Crystal reports for Visual studio but stucked with StimulSoft..
Following are the Steps what i m doing.

I Have Created a .XSD File in the product Folder Named : MST_XML.xsd..
I have created a Table name "MST_CODE_NM" ..

Following is the code i m using to pass datatable to the report.

dt_Print = New DataTable
Dim daRpt As New SqlDataAdapter(New SqlCommand(RptSql, dbCon))
dt_Print.ReadXmlSchema("c:\project\Mst_XML.xsd")

daRpt.Fill(dt_Print)
Dim Report As StiReport = New StiReport()

Report.Load("c:\project\MST_CODE_NM.MRT")

Report.RegData(dt_Print)
Report.Dictionary.Synchronize()
Report.Show
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to Show Report in VB.Net .

Post by Alex K. »

Hello,

We couldn't reproduce this issue.
Can you please send us a sample project which reproduces the issue for analysis.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How to Show Report in VB.Net .

Post by HighAley »

Hello.
parmarjitesh wrote:I Am a Crystal reports user....but we find Stimulsoft More Productive so we are evaluating it....
But After a Big Time of 2 Days....I am unable to bind the data table to the report file to show the report.
I can do that easily in Crystal reports for Visual studio but stucked with StimulSoft..
Following are the Steps what i m doing.

I Have Created a .XSD File in the product Folder Named : MST_XML.xsd..
I have created a Table name "MST_CODE_NM" ..

Following is the code i m using to pass datatable to the report.

Code: Select all

dt_Print = New DataTable
Dim daRpt As New SqlDataAdapter(New SqlCommand(RptSql, dbCon))
dt_Print.ReadXmlSchema("c:\project\Mst_XML.xsd")

daRpt.Fill(dt_Print)
Dim Report As StiReport = New StiReport()

Report.Load("c:\project\MST_CODE_NM.MRT")

Report.RegData(dt_Print)
Report.Dictionary.Synchronize()
I tried all various methods but frustrated and hence posting here for a positive reply.
Kindly note i have not created any .XML files...Created only a .XSD file and created all the tables in it
We tried to use your code. It works right.
We need to see a sample project which reproduce the error to help you.

Thank you.
parmarjitesh
Posts: 6
Joined: Fri May 11, 2012 10:09 am
Location: INDIA

How to Show Report in VB.Net .

Post by parmarjitesh »

Issue Resolved ! Thank You Very Much ! it was my mistake as i had forgot to fill the data in the Datatable :biggrin:

Thank You Once Again
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

How to Show Report in VB.Net .

Post by Andrew »

Hello,

Great! Have a nice day!

Thank you.
Post Reply