Error CS0103: The name 'Produto' does not exist in the current context
eliezeralmeida opened this issue · 1 comments
Describe the bug
With Designer.exe my Report works perfect!!!
To Reproduce
Steps to reproduce the behavior:
- Create a FRX file using Designer.exe.
- Add MSSQL Connection.
- Create a .NET7 Project.
- Create code from above image.
Expected behavior
A clear and concise description of what you expected to happen.
Stacktrace
at FastReport.Code.AssemblyDescriptor.InternalCompile() at FastReport.Code.AssemblyDescriptor.Compile() at FastReport.Report.Compile() at FastReport.Report.Prepare(Boolean append) at FastReport.Report.Prepare() at Program.<Main>$(String[] args) in C:\Users\eliez\source\repos\FastReportCommunity\ConsoleApp\Program.cs:line 8
Device (please complete the following information):
- OS: Windows 11
- Browser: none
- Version: 2024.1.7
- NET7
Additional context
<?xml version="1.0" encoding="utf-8"?> <Report ScriptLanguage="CSharp" ReportInfo.Created="02/23/2024 17:50:17" ReportInfo.Modified="02/23/2024 18:55:25" ReportInfo.CreatorVersion="2023.2.18.0"> <Dictionary> <MsSqlDataConnection Name="MSSQL_Connection" ConnectionString="rijcmlqN/jnmYfUwPzQdJg9KqaYWm+wHolLb6isIBHWICIv2aOF6wSKm1ywp1GzIKHeXmneBp/e1MmKaSILyQSYfPsxuEVIvY595epxXfzdpgkL6yz54cN7hvyHTRGTKtoi/VWTini6oFLP4zUbF8X/2TN5eyN8BN93GwFhHFJapDbMsZL55msqIe72b+u6ahowaU0iW6qH3OO2MCdsluuQIrGDZstZi+ziHY1lpKtkqTXi9rY="> <TableDataSource Name="Produto" DataType="System.Int32" PropName="Table" Enabled="true" SelectCommand="select p.id as ProdutoCodigo, p.nome as ProdutoNome, p.tabelaNcm_id as NCM, p.codigoCest as CEST, rts.situacaoTributariaIcms_id as CST_ICMS, rts.situacaoTributariaCsosn_id as CSOSN_ICMS, p.aliquotaIcms as AliquotaICMS, p.reducaoIcms as ReducaoICMS, p.percentualMva MVA_ICMS, p.situacaoTributariaIpi_id as CST_IPI, p.aliquotaIpi as AliquotaIPI, p.situacaoTributariaPis_id as CST_PIS, p.aliquotaPis as AliquotaPIS from produto p inner join regra_tributacao_saida rts on rts.id = p.regraTributacaoSaida_id;"> <Column Name="ProdutoCodigo" DataType="System.Int32"/> <Column Name="ProdutoNome" DataType="System.String"/> <Column Name="NCM" DataType="System.String"/> <Column Name="CEST" DataType="System.String"/> <Column Name="CST_ICMS" DataType="System.String"/> <Column Name="CSOSN_ICMS" DataType="System.String"/> <Column Name="AliquotaICMS" DataType="System.Decimal"/> <Column Name="ReducaoICMS" DataType="System.Decimal"/> <Column Name="MVA_ICMS" DataType="System.Decimal"/> <Column Name="CST_IPI" DataType="System.String"/> <Column Name="AliquotaIPI" DataType="System.Decimal"/> <Column Name="CST_PIS" DataType="System.String"/> <Column Name="AliquotaPIS" DataType="System.Decimal"/> </TableDataSource> </MsSqlDataConnection> <Parameter Name="NomeEmpresa" DataType="System.String" AsString=""/> <Parameter Name="LogoEmpresa" DataType="System.Byte[]" AsString=""/> </Dictionary> <ReportPage Name="Page1" Watermark.Font="Arial, 60pt"> <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="103.95"> <PictureObject Name="Picture1" Left="18.9" Top="9.45" Width="94.5" Height="85.05" Image=""/> <TextObject Name="Text1" Left="113.4" Top="9.45" Width="567" Height="28.35" Text="[NomeEmpresa]" Font="Arial, 14pt"/> </ReportTitleBand> <DataBand Name="Data1" Top="133.3" Width="718.2" Height="22.68" DataSource="Produto"> <TextObject Name="Text6" Left="359.1" Width="94.5" Height="18.9" Text="[Produto.ProdutoCodigo]" Font="Arial, 10pt"/> <TextObject Name="Text7" Width="359.1" Height="18.9" Text="[Produto.ProdutoNome]" Font="Arial, 10pt"/> <DataHeaderBand Name="DataHeader1" Top="107.28" Width="718.2" Height="22.68"> <TextObject Name="Text3" Width="359.1" Height="18.9" Text="ProdutoNome" Font="Arial, 10pt"/> <TextObject Name="Text5" Left="359.1" Width="94.5" Height="18.9" Text="ProdutoCodigo" Font="Arial, 10pt"/> </DataHeaderBand> </DataBand> <PageFooterBand Name="PageFooter1" Top="159.31" Width="718.2" Height="30.24"/> </ReportPage> </Report>