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

Invalid variant type

edited September 2005 in General
Hi All,

I posted this on the Delphi groups and then it dawned on me that this
would be a better place. Please excuse the double posting.

I have an application (D7 & RB 7.04) that is giving me an error
"Invalid variant type. Error Class: EVariantBadVarTypeError" on the
customer's computers (3 different machines). I haven't been able to
duplicate the error on any of my computers.

I have copied the same database and executable from the customers
computer to mine and it runs all the reports just fine. On the
customers computers it fails every time.

The only way I've been able to trace it so far is by putting
ShowMessage calls in during various events. It throws the exception
right after the OnBeforePrint event of the TppReport object and before
any OnBefore events of any of the bands (Header, Detail, or Footer).

I did a search on the customer's computer for BPL files and only found
3; BCB*.BPL, VCL35.BPL, and VCLx35.BPL. I don't know why these are on
the machine but they don't look like RB files.

Any ideas?
Steve

Comments

  • edited September 2005

    Have not heard of this error before. According to the Delphi help...
    'EVariantBadVarTypeError is raised when a variant operation fails because of
    a value that isn't a valid variant type.'

    Running against your customer's data and trying to duplicate their
    environment is definitely the approach I would take. Also, if the customer
    has different regional settings you will want to duplicate that as well.

    The suffix 35 for the bpl's indicates Borland C++ Builder (BCB) version 3.
    You are correct, these are not related to ReportBuilder at all.





    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

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