Page 1 of 1

How to Show Report in VB.Net .

Posted: Fri May 11, 2012 10:18 am
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


How to Show Report in VB.Net .

Posted: Fri May 11, 2012 10:55 am
by parmarjitesh
Any Body Please Reply......Cannot do such a simple task.....
Help will be appreciated....

How to Show Report in VB.Net .

Posted: Fri May 11, 2012 11:00 am
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

How to Show Report in VB.Net .

Posted: Fri May 11, 2012 11:03 am
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

How to Show Report in VB.Net .

Posted: Fri May 11, 2012 11:08 am
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

How to Show Report in VB.Net .

Posted: Mon May 14, 2012 4:49 am
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.

How to Show Report in VB.Net .

Posted: Tue May 15, 2012 7:13 am
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.

How to Show Report in VB.Net .

Posted: Tue May 15, 2012 7:42 am
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

How to Show Report in VB.Net .

Posted: Tue May 15, 2012 11:38 pm
by Andrew
Hello,

Great! Have a nice day!

Thank you.