Solution: Linked Parameter causes "Operation illegal on linked parameter"

Solution: Linked Parameter causes "Operation illegal on linked parameter"

Dec 22, 2004 03:16 PM|LINK

I was killing myself over this problem, which only appears when you use the "ApplyLogOnInfo" I found out though that Cr.NET thought that the Linked Parameter was an actual parameter and I was trying to set it's value. The problem I had was the linked parameter has the same name as the actual parameter I was using, and I couldn't tell which one was the actual Parameter and which one was the linked one. I looked around and someone suggested using the "If ParameterFields.Item(i).IsLinked = False Then" BUT Cr.NET's IsLinked doesn't work as per the Crystal Website.. they suggest looking for "Pm-" in the parameter name. Maybe I'm doing something wrong, but no linked parameter has PM- in it.. so then I was stuck again.. BUT after a long time of trying everything I tried this: Dim sName As String = oRpt.DataDefinition.ParameterFields.Item(i).PromptText And found out that when the item is a Linked Parameter sName is nothing! YAY! So now I run: If sName is Nothing then 'Parameter is a linked parameter, so do not pass a value to it. Else 'Valid Parameter assign a value to it. End If Fantastic.


Error Information:


How to build relation between master report and sub report:
             

Sub report linked parameter definition:
             


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值