Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

"The Parameter is Incorrect" error

edited October 2004 in End User
When a field is dragged from the data tree to a report band an error is generated saying "The parameter is
incorrect". This only effects one particular field (8000 char text field), all others are ok.

The main problem is that this only happens on a client site, I can perform the same action on our test system and the
field is dragged and dropped okay and I can import the client reports into our system, again, without any errors.

Anyone any ideas, there's no indication of what parameter is incorrect?

Regards
Cary

Delphi 7 Architect
Direct Oracle Access 4.05
ReportBuilder Enterprise 7.03

Comments

  • edited October 2004
    Further investigation would indicate the problem is caused by auto-sizing the width of the control when the field is
    dropped on the designer (although I still don't understand why I can't duplicate the error on our systems).

    Is there a method available to stop autosizing on drag and drop and set the field to a fixed size?

    Thanks,
    Cary.

  • edited October 2004

    Check out the TppLayoutFactory class defined in ppRptWiz.pas. This class can
    be replaced with your own custom descendant class. This class is used by the
    report wizard and the data tree drag-n-drop. There is a SetComponentSize
    method that you can override. To register class add the following to the
    initialization section of your unit:

    gcLayoutFactory := TmyLayoutFactory;




    --


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2004
    Thanks Nard, will look into this for a future enhancement but I've found that
    setting the DisplayWidth property in the pipeline field definition to 50
    instead of 8000 seems to have solved the issue in the short-term.

    Regards,
    Cary.

  • edited October 2004

    Yes, that will work also. :)


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.