客户端机器上的水晶报表加载问题
我在 vb.net 2008 上开发了一个 Windows 应用程序,并将其部署在客户端计算机上,我的水晶报告通过 DSN 配置为服务器,在我的开发计算机上一切正常,但在客户端计算机上生成的是“加载报告失败”。我已通过文件系统在安装包中添加了 Reports 文件夹以及该文件夹中的所有 RPT 文件。
Dim path As String
path = Application.StartupPath.Substring(0, Application.StartupPath.Length - 10)
Dim fullpath As String = path & "\Reports\slip.rpt "
cryRpt.Load(fullpath)
I have developed a windows application on vb.net 2008 and deployed it on client machine my crystal reports are configured through DSN to server everything is going fine om my development machine but on client machine producing is "Load Report failed" . I have added Reports folders and all RPT files in that folder in installation package through file system.
Dim path As String
path = Application.StartupPath.Substring(0, Application.StartupPath.Length - 10)
Dim fullpath As String = path & "\Reports\slip.rpt "
cryRpt.Load(fullpath)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
客户端计算机上的数据库名称是否不同?如果是这样,您可能需要在代码中交换表名(也包含数据库名称),以便它们不包含您的数据库名称:
Is the Database name different on the client machine? If so you might need to swap out the tablenames (which also contain the database name) in code so they don't contain your database name: