on 11-23-2011 7:35 PM
Hello,
I am using VS2010SP1 with Crystal Reports for .NET Framework 4.0.
To populate reports I use datasets that are created in VB.NET application and populates using ReportDocument object.
In one of reports I need to create sub report, that I placed in footer of a group.
Report shows all data correct exept in subreport.
If I do not set in subreport links parameters it shows all records, but when I try to create any parameter it gives me an error
"Operation illegal on linked parameter". I tried to check/uncheck checkbox (Select data in subreport based on field) but it did not
helped me and now I do not know what else can be done.
Is there any place that I can set paramenters for subreport?
Thank you in advance.
yurluc.
Hi,
Take a look at the below SAP Note
[1216055 - Err Msg: "Operation illegal on linked parameter" when a .NET application is run |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313336333033353335%7D.do]
Also see if below forum threads help
These are all the results of a search 'Operation illegal on linked parameter' in the above topr right search box.
Thanks,
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I tried to run report using XML file created as you mention and it runs fine untill I start to use parameters.
If I assign the parameter in Formula it reduce records to correct list.
IF I try to for test purpose to assign parameter in the code it gives me error once I create a loop for list of parameters
like For Each item As ParameterField In crystalApp.Subreports.Item(0).ParameterFields
'Not supported within subreports.'
And if I try to set parameter through link it gives me Operation illegal error.
It looks like the problem in parameters for sub reports.
For sake of testing I created a parameter in the main report and there was no errors in report.
Thank you,
yurluc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yurluc
This sounds like something that may need more testing. It will be best to create a phone case and get a dedicated engineer on it:
- Ludek
Report is not connected to any database.
I created .XSD file and created report base on it.
In application I only supply the data according to structure of .XSD file and it works with all reports.
But with subreport there sims to be a problem.
Once again if I do not use parameters it shows all records, but I need to show records related to the
group in main report.
Am I doing something wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply but I already read all there threads and they did not apply in my case.
The problem is in whatever I do with parameters it always get to the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.