如何在Crystal Report视图中设置动态路径 [英] how to set a dynamic path in crystal report view

查看:96
本文介绍了如何在Crystal Report视图中设置动态路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我将C#.net 2008用作前端,并将sql2005用作数据库.在C#.net中,我已使用CRV查看水晶报表.

现在的问题是,当我将文件夹移动到任何其他路径时,Crystal报表中会出现一些登录ID和密码,这显示了错误的路径,因此现在存在用于查看Crystal报表的任何相对或动态路径. >
CRV是否还有其他属性可以提供相对路径,因此,如果将文件夹从一个位置移动到另一个位置,那么我们还可以看到水晶报表?还是还有其他方法可以为水晶报表设置相对路径?

希望大家都明白我想说的意思.谁能用简单的方式说

reportdoc.load("C:\\ Documents and Settings \\ Desktop \\ Company_Details \\ Forms \\ SalesInvoice.rpt");

但是我需要动态路径...

Hello Friend

I am using C#.net 2008 as front end and Ms sql2005 as database. In C#.net I have used CRV for viewing crystal report.

Now the problem is that when I''m moving the folder to any other path then some login id and password occurs in crystal report, which shows the wrong path so now is there any relative or dynamic path for viewing crystal report.

Is there any other properties of CRV in which we can give the relative path so that if we move folder from one place to another then also we can see the crystal report? Or is there any other way to set relative path for crystal report?

Hope so you all got the meaning what I want to say. Can any one say in simple way

reportdoc.load("C:\\Documents and Settings\\Desktop\\Company_Details\\Forms\\SalesInvoice.rpt");

but i need dynamic path...

推荐答案

要解决该错误,请检查此提示/技巧
Crystal Reports:修复了"Load report failed"错误. [ ^ ]
有关动态路径,请查看此答案
如何在中提供水晶报告的路径. NET [ ^ ]
To fix the error, check this Tip/Trick
Crystal Reports: Fix for "Load report failed" error.[^]
For dynamic path, check this answer
How to give the path for crystal report in .NET[^]


这篇关于如何在Crystal Report视图中设置动态路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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