<i id='iLOGC'><tr id='iLOGC'><dt id='iLOGC'><q id='iLOGC'><span id='iLOGC'><b id='iLOGC'><form id='iLOGC'><ins id='iLOGC'></ins><ul id='iLOGC'></ul><sub id='iLOGC'></sub></form><legend id='iLOGC'></legend><bdo id='iLOGC'><pre id='iLOGC'><center id='iLOGC'></center></pre></bdo></b><th id='iLOGC'></th></span></q></dt></tr></i><div id='iLOGC'><tfoot id='iLOGC'></tfoot><dl id='iLOGC'><fieldset id='iLOGC'></fieldset></dl></div>
  • <small id='iLOGC'></small><noframes id='iLOGC'>

        <legend id='iLOGC'><style id='iLOGC'><dir id='iLOGC'><q id='iLOGC'></q></dir></style></legend>
      1. <tfoot id='iLOGC'></tfoot>
          <bdo id='iLOGC'></bdo><ul id='iLOGC'></ul>
      2. VS2010 Crystal Reports 通过代码发送数据集时要求登录.

        VS2010 Crystal Reports ask for login when sending a Dataset via code.(VS2010 Crystal Reports 通过代码发送数据集时要求登录.)
      3. <legend id='IQQvJ'><style id='IQQvJ'><dir id='IQQvJ'><q id='IQQvJ'></q></dir></style></legend>

          1. <tfoot id='IQQvJ'></tfoot>

                <bdo id='IQQvJ'></bdo><ul id='IQQvJ'></ul>

                <small id='IQQvJ'></small><noframes id='IQQvJ'>

                  <tbody id='IQQvJ'></tbody>

                <i id='IQQvJ'><tr id='IQQvJ'><dt id='IQQvJ'><q id='IQQvJ'><span id='IQQvJ'><b id='IQQvJ'><form id='IQQvJ'><ins id='IQQvJ'></ins><ul id='IQQvJ'></ul><sub id='IQQvJ'></sub></form><legend id='IQQvJ'></legend><bdo id='IQQvJ'><pre id='IQQvJ'><center id='IQQvJ'></center></pre></bdo></b><th id='IQQvJ'></th></span></q></dt></tr></i><div id='IQQvJ'><tfoot id='IQQvJ'></tfoot><dl id='IQQvJ'><fieldset id='IQQvJ'></fieldset></dl></div>
                • 本文介绍了VS2010 Crystal Reports 通过代码发送数据集时要求登录.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在我的项目中创建了一个数据集 (.xsd) 和报告 (.rpt) 文件.我通过代码填充我的数据集,然后将其设置为报告的 SetDataSource,它显示第一页很好,但其他任何内容,如下一页或导出触发登录弹出窗口.

                  I've created a Dataset (.xsd) and Report (.rpt) files in my project. I fill my Dataset via code and then set it to the Report's SetDataSource, it shows the first page fine but anything else, like next page or export triggers a login popup.

                  我做错了什么?没有用户或通行证(我猜),因为我没有直接访问数据库.

                  What am I doing wrong? Theres no user or pass (I guess) since I'm not making a direct access to the DB.

                          List<TBL_PAG_SEGURO_VENDASFields> list = controle.GetRelatorioAll();
                          vendasDS ds = new vendasDS();
                          foreach(TBL_PAG_SEGURO_VENDASFields item in list)
                          {
                              DataRow row = ds.Tables["vendas"].NewRow();
                              row[0] = item.RAZAO_SOCIAL;
                              row[1] = item.DT_VENDA;
                              row[2] = item.TRANSACAO_ID;
                              row[3] = item.SITUACAO;
                              row[4] = item.NOME;
                              row[5] = item.VALOR_VENDA;
                              row[6] = item.DT_LIBERACAO_PAGTO;
                              row[7] = item.HISTORICO_ALTERACOES;
                              row[8] = item.DT_FINAL_SERVICE;
                              ds.Tables["vendas"].Rows.Add(row);
                          }
                          ReportDocument reportDocument = new ReportDocument();
                          string filePath = Request.PhysicalApplicationPath + "Recursos/Reports/vendasCR.rpt";                
                          reportDocument.Load(filePath);
                          reportDocument.SetDataSource(ds);
                          crv_Vendas.ReportSource = reportDocument;
                  

                  推荐答案

                  代码是对的,我做错的是在我的报告中使用自定义连接设置数据集文件,重新创建它,将数据集设置为 ADO.NET 连接并在 Page_Init 中进行代码调用解决了我的问题.

                  The code is right, what I was doing wrong is setting the dataset file with a custom connection in my report, recreated it setting the dataset as ADO.NET Connection and making the code call inside Page_Init solved my problem.

                  这篇关于VS2010 Crystal Reports 通过代码发送数据集时要求登录.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding DbContextOptions in Startup.cs not registering data store(在 Startup.cs 中添加 DbContextOptions 未注册数据存储)
                  Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                  Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                  Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                  Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                  Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)

                      <tbody id='WQs1N'></tbody>

                        <legend id='WQs1N'><style id='WQs1N'><dir id='WQs1N'><q id='WQs1N'></q></dir></style></legend>
                      • <tfoot id='WQs1N'></tfoot>
                        • <bdo id='WQs1N'></bdo><ul id='WQs1N'></ul>

                          <small id='WQs1N'></small><noframes id='WQs1N'>

                          1. <i id='WQs1N'><tr id='WQs1N'><dt id='WQs1N'><q id='WQs1N'><span id='WQs1N'><b id='WQs1N'><form id='WQs1N'><ins id='WQs1N'></ins><ul id='WQs1N'></ul><sub id='WQs1N'></sub></form><legend id='WQs1N'></legend><bdo id='WQs1N'><pre id='WQs1N'><center id='WQs1N'></center></pre></bdo></b><th id='WQs1N'></th></span></q></dt></tr></i><div id='WQs1N'><tfoot id='WQs1N'></tfoot><dl id='WQs1N'><fieldset id='WQs1N'></fieldset></dl></div>