水晶報表超鏈接問題

lianyi68 2010-01-06 10:22:19
想在winform中實現點擊報表A中的某個字段,將字段的值傳給另外一個報表B,并顯示新的報表b,請各位大蝦米指點指點下。
...全文
60 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fina1982 2010-01-06
  • 打赏
  • 举报
回复
定义一个Public变量用来传值
JavaK 2010-01-06
  • 打赏
  • 举报
回复
This can be accomplished through the use of the hyperlink feature in the Crystal Reports Designer along with a parameter field:


1. Create a second report with a parameter field for the customer name and insert this parameter into a selection formula. For example:


{table.customerNames} = {?MyCustomer}


2. In the main report, right click on the "customerNames" field select "Format Field".


3. On the "Hyperlink" tab, check on the "A website on the Internet" option and in the Hyperlink Information box, click on the "X+2" button and type:


"HTTP://<serverName>/virtualDirectory/subreportName.rpt?prompt0="+{table.customerNames} with the quotes.


4. Then save the formula and save the report.


Now when the report is run, you can click on the field and see the resulting customer details in the second report.
我用WinForm试,HyperLink to 'report object'和 Hyperlink to 'file'不行,不知道是不是我的crystal report 版本有问题。

111,120

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧