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

    <tfoot id='tOZ2V'></tfoot>

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

      1. <legend id='tOZ2V'><style id='tOZ2V'><dir id='tOZ2V'><q id='tOZ2V'></q></dir></style></legend>

        如何动态更改水晶报表数据库连接

        How to dynamically change crystal report database connection(如何动态更改水晶报表数据库连接)
          • <i id='QMWC0'><tr id='QMWC0'><dt id='QMWC0'><q id='QMWC0'><span id='QMWC0'><b id='QMWC0'><form id='QMWC0'><ins id='QMWC0'></ins><ul id='QMWC0'></ul><sub id='QMWC0'></sub></form><legend id='QMWC0'></legend><bdo id='QMWC0'><pre id='QMWC0'><center id='QMWC0'></center></pre></bdo></b><th id='QMWC0'></th></span></q></dt></tr></i><div id='QMWC0'><tfoot id='QMWC0'></tfoot><dl id='QMWC0'><fieldset id='QMWC0'></fieldset></dl></div>
            <tfoot id='QMWC0'></tfoot>

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

            <legend id='QMWC0'><style id='QMWC0'><dir id='QMWC0'><q id='QMWC0'></q></dir></style></legend>
              <tbody id='QMWC0'></tbody>
              • <bdo id='QMWC0'></bdo><ul id='QMWC0'></ul>

                  本文介绍了如何动态更改水晶报表数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是水晶报告的新手.我尝试使用报表向导 Visual Studio 2012 在我的 win form c# 应用程序中实现水晶报表,所以不知道反手会发生什么.一切在我的计算机上运行良好,但是当我尝试在另一台计算机上安装它时,连接字符串发生变化并出现错误.

                  I am new with crystal reports. I tried to to implement the crystal report in my win form c# application using report wizard visual studio 2012, so don't know what happen's in backhand for this. Everything works good on my computer but when i tried install this on another computer connection string changes and gives error.

                  我尝试了许多链接,例如 动态连接字符串更改但由于我正在使用报告向导进行设置,所以不知道在哪里使用它.

                  I tried many links like Dynamic Connection string Change but as i am using report wizard for setup so don't know where to use this.

                  我还尝试了报告向导中连接字符串的所有选项,但没有找到在运行时更改连接字符串的任何内容.

                  I also tried all options in report wizard for connection string but didn't find anything that change connection string at run time.

                  是否有任何选项可以让我在运行时从应用配置附加连接字符串.

                  Is there any options by which i can attach connection String from app config at run time.

                  推荐答案

                  试试这样的:

                  strServer= ConfigurationManager.AppSettings["ServerName"].ToString();
                  strDatabase= ConfigurationManager.AppSettings["DataBaseName"].ToString();
                  strUserID= ConfigurationManager.AppSettings["UserId"].ToString();
                  strPwd= ConfigurationManager.AppSettings["Password"].ToString();
                  
                  report.DataSourceConnections[0].SetConnection(strServer, strDatabase, strUserID, strPwd);
                  

                  这篇关于如何动态更改水晶报表数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 标头都去了哪里?)
                    1. <small id='v9xEL'></small><noframes id='v9xEL'>

                      <tfoot id='v9xEL'></tfoot>

                      <i id='v9xEL'><tr id='v9xEL'><dt id='v9xEL'><q id='v9xEL'><span id='v9xEL'><b id='v9xEL'><form id='v9xEL'><ins id='v9xEL'></ins><ul id='v9xEL'></ul><sub id='v9xEL'></sub></form><legend id='v9xEL'></legend><bdo id='v9xEL'><pre id='v9xEL'><center id='v9xEL'></center></pre></bdo></b><th id='v9xEL'></th></span></q></dt></tr></i><div id='v9xEL'><tfoot id='v9xEL'></tfoot><dl id='v9xEL'><fieldset id='v9xEL'></fieldset></dl></div>
                        <tbody id='v9xEL'></tbody>
                        <bdo id='v9xEL'></bdo><ul id='v9xEL'></ul>
                      • <legend id='v9xEL'><style id='v9xEL'><dir id='v9xEL'><q id='v9xEL'></q></dir></style></legend>