Skip to Content
author's profile photo Former Member
Former Member

Operation illegal on linked parameter.when linking tp subreport

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Nov 23, 2011 at 08:14 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2011 at 09:04 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2011 at 02:11 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2011 at 06:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.