Convert method error

Stimulsoft Reports.NET discussion
Post Reply
djm000111
Posts: 16
Joined: Wed Jul 13, 2011 1:26 pm

Convert method error

Post by djm000111 »

I've got a function defined in a report that generates an error each time the Convert method is referenced. Anyone have an idea what is the cause of the error?

The error is: "Argument not specified for parameter 'newUnit' of 'Public Sub Convert(oldUnit As Stimulsoft.Report.Units.StiUnit, newUnit As Stimulsoft.Report.Units.StiUnit)'.

Also a similar error: "Argument not specified for parameter 'oldUnit' of 'Public Sub Convert(oldUnit As Stimulsoft.Report.Units.StiUnit, newUnit As Stimulsoft.Report.Units.StiUnit)'.

Thanks,

Attachments
1263.Fraction_Function-test.zip
(48.07 KiB) Downloaded 244 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Convert method error

Post by Alex K. »

Hello,

Please use the following code:

Code: Select all

System.Convert.ToString()
instead

Code: Select all

Convert.ToString()
Thank you.
djm000111
Posts: 16
Joined: Wed Jul 13, 2011 1:26 pm

Convert method error

Post by djm000111 »

Thank you, I should have caught that.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Convert method error

Post by Andrew »

Ok!
Post Reply