用string reportPath = Application.StartupPath;得到reportPath 的值是D:\CZQ\CZQ\CZQ\bin\F_Report_Data.cs,我现在想把这个字符串倒数第二个‘\’后面的的bin\F_Report_Data.cs替换成Report\CrystalReport1.rpt
请大侠给支支招,谢谢!
请大侠给支支招,谢谢!
解决方案 »
- 如何使泛型的参数是通用的?
- 简单的排序问题,在线等待。。。。。。。。
- datareader从SQLServer取char型字段的值,当值为null时,如何转换为string型变量?
- 如何实现类,属性或方法的提示?
- 请问高手comboBox如何让输入的字符自动变为大写?
- 用TableAdapter插入数据到SqlServer数据库后,怎样获取自增型的ID?
- 如何做带参数的水晶报表?
- 有没有对话框是返回一个目录的路径而不是文件的路径?
- winform嵌入ie内核
- .net framework版本不同导致调用第三方64位DLL异常
- 请问sybase sql anywhere 7.0的.db文件如何打开、连接。
- 一个面试题:生成0~100不重复的随机数
s = s.Substring(0,s.LastIndexOf("\\"));
s = s.Substring(0, s.LastIndexOf("\\"));
s+=@"\Report\CrystalReport1.rpt"'
reportPath=reportPath.Substring(0,reportPath.IndexOf("bin"))+"Report\CrystalReport1.rpt";