How to Show Report in VB.Net .
-
- Posts: 6
- Joined: Fri May 11, 2012 10:09 am
- Location: INDIA
How to Show Report in VB.Net .
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
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
-
- Posts: 6
- Joined: Fri May 11, 2012 10:09 am
- Location: INDIA
How to Show Report in VB.Net .
Any Body Please Reply......Cannot do such a simple task.....
Help will be appreciated....
Help will be appreciated....
How to Show Report in VB.Net .
Hi,parmarjitesh wrote:Any Body Please Reply......Cannot do such a simple task.....
Help will be appreciated....
have you tried the show method ?
Report.show()
cheers
stephan
How to Show Report in VB.Net .
Have you tried the report.show() Method ?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
cheers
-
- Posts: 6
- Joined: Fri May 11, 2012 10:09 am
- Location: INDIA
How to Show Report in VB.Net .
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
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 .
Hello,
We couldn't reproduce this issue.
Can you please send us a sample project which reproduces the issue for analysis.
Thank you.
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 .
Hello.
We need to see a sample project which reproduce the error to help you.
Thank you.
We tried to use your code. It works right.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.
I tried all various methods but frustrated and hence posting here for a positive reply.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()
Kindly note i have not created any .XML files...Created only a .XSD file and created all the tables in it
We need to see a sample project which reproduce the error to help you.
Thank you.
-
- Posts: 6
- Joined: Fri May 11, 2012 10:09 am
- Location: INDIA
How to Show Report in VB.Net .
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
Thank You Once Again
How to Show Report in VB.Net .
Hello,
Great! Have a nice day!
Thank you.
Great! Have a nice day!
Thank you.