DataSet Binding
Posted: Tue May 18, 2010 12:07 am
Hi,
I'm having problem with dataset binding, this is the code:
DataSet result is:
Id_ContaPatrimonial
Descricao
So, when execute results in:
c:\Windows\Temp\vag0frrp.0.cs(132,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Descricao'c:\Windows\Temp\vag0frrp.0.cs(137,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Id_ContaPatrimonial'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: c:\Windows\Temp\vag0frrp.0.cs(132,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Descricao'c:\Windows\Temp\vag0frrp.0.cs(137,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Id_ContaPatrimonial'
Source Error:
Line 26: .Dictionary.Synchronize()
Line 27:
Line 28: .Compile() <--- Error Line
Line 29:
Line 30: 'Titulo do Relatorio
Stack Trace:
[Exception: c:\Windows\Temp\vag0frrp.0.cs(132,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Descricao'c:\Windows\Temp\vag0frrp.0.cs(137,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Id_ContaPatrimonial']
Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType) +1634
Stimulsoft.Report.StiReport.Compile() +21
BLL.BLL_Module.buildReport(cad_Usuario pSessionUser, String pConnReport, WebFormSelected pWebFormSelected, String pFiltroEsquerda, String pFiltroDireita, DataSet pDataSet) in D:\Attiva\Fontes .NET\SIAP\BLL\main\Library.vb:28
BLL.System.cad_ContaPatrimonial.imprimir(cad_Usuario pSessionUser, WebFormSelected pWebFormSelected) in D:\Documents\Visual Studio 2010\Projects\SCPA\BLL\System\cad_ContaPatrimonial.vb:90
WEB.Forms.cadContaPatrimonial.TitleButton_Click(Object sender, ImageClickEventArgs e) in D:\Documents\Visual Studio 2010\Projects\SCPA\WEB\Forms\cadContaPatrimonial.aspx.vb:28
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Thanks for any help.
I'm having problem with dataset binding, this is the code:
Code: Select all
Dim Report As StiReport = New StiReport()
With Report
.Load(pSessionUser.ServerPath + "../bin/Reports/" + pWebFormSelected.Report + ".mrt")
.Dictionary.Databases.Clear()
.Dictionary.Databases.Add(New StiSqlDatabase("Connection", pConnReport))
.ReportName = pWebFormSelected.Report
.Dictionary.DataSources.Clear()
If Not IsNothing(pDataSet) Then
.RegData(pDataSet)
End If
.Dictionary.Synchronize()
.Compile()
End With
return Report
Id_ContaPatrimonial
Descricao
So, when execute results in:
c:\Windows\Temp\vag0frrp.0.cs(132,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Descricao'c:\Windows\Temp\vag0frrp.0.cs(137,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Id_ContaPatrimonial'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: c:\Windows\Temp\vag0frrp.0.cs(132,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Descricao'c:\Windows\Temp\vag0frrp.0.cs(137,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Id_ContaPatrimonial'
Source Error:
Line 26: .Dictionary.Synchronize()
Line 27:
Line 28: .Compile() <--- Error Line
Line 29:
Line 30: 'Titulo do Relatorio
Stack Trace:
[Exception: c:\Windows\Temp\vag0frrp.0.cs(132,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Descricao'c:\Windows\Temp\vag0frrp.0.cs(137,48) : error CS0117: 'System.Data.DataSet' does not contain a definition for 'Id_ContaPatrimonial']
Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType) +1634
Stimulsoft.Report.StiReport.Compile() +21
BLL.BLL_Module.buildReport(cad_Usuario pSessionUser, String pConnReport, WebFormSelected pWebFormSelected, String pFiltroEsquerda, String pFiltroDireita, DataSet pDataSet) in D:\Attiva\Fontes .NET\SIAP\BLL\main\Library.vb:28
BLL.System.cad_ContaPatrimonial.imprimir(cad_Usuario pSessionUser, WebFormSelected pWebFormSelected) in D:\Documents\Visual Studio 2010\Projects\SCPA\BLL\System\cad_ContaPatrimonial.vb:90
WEB.Forms.cadContaPatrimonial.TitleButton_Click(Object sender, ImageClickEventArgs e) in D:\Documents\Visual Studio 2010\Projects\SCPA\WEB\Forms\cadContaPatrimonial.aspx.vb:28
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Thanks for any help.