当我们运行水晶报告时,会出现登录对话框 [英] when we run crystal report than logon dialogue appear

查看:86
本文介绍了当我们运行水晶报告时,会出现登录对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个数据集,然后在该数据集中添加整个数据库表..当我在数据集中添加一个表而不是其工作正常但是当我添加多个表然后运行我的水晶报表然后登录对话框出现。任何人都知道这个而不是发布answer.thanx提前

i am created one dataset and than add whole database table in that dataset..when i add one table in dataset than its works fine but when i added more than one table and then run my crystal report then logon dialogue appear.if any one know about this than post the answer.thanx in advance

推荐答案

EnableDatabaseLogonPrompt 设置为 false



Set EnableDatabaseLogonPrompt to false

<pre lang="vb"><CR:CrystalReportViewer ID="CwrVatCrystalReportViewer" 

        runat="server" AutoDataBind="true"

        EnableDatabaseLogonPrompt="False"

        EnableParameterPrompt="False" Height="1039px"

        ReportSourceID="CwrVatCrystalReportSource"

        ReuseParameterValuesOnRefresh="True"

        Width="901px" />


之前遇到的同样的问题,请在app.config页面写一下。



Same problem i had faced before, So write this in the app.config page.

<startup uselegacyv2runtimeactivationpolicy="true">
   <supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
 </startup>


这篇关于当我们运行水晶报告时,会出现登录对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆