Help with error message: The Hyperlink expression for the image ‘image1’ contains an error: [BC30057] Too many arguments to 'Public ReadOnly Default Property Chars(index As Integer) As Char'

I am trying to get an exression in a SSRS report for when an image is clicked on it takes the user to a spefic folder in a web site. However, when I try to build the report I get this error message:
The Hyperlink expression for the image ‘image1’ contains an error: [BC30057] Too many arguments to 'Public ReadOnly Default Property Chars(index As Integer) As Char'

My expression:
=Code.GetSitePath(User!UserID,Fields!site.Value.ToString())+"/Delivery%20Orders/Forms/AllItems.aspx?RootFolder=%2fsites%2f"(User!UserID,Fields!site.Value.ToString())"%2fDelivery%20Orders%2f+"Fields!GTRI_CustomerPO.Value.ToString())+"&type=4"

Anythoughts? Please help.....first time with working with SSRS reports.
newjeep19Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Nico BontenbalConnect With a Mentor Commented:
Were you able to get the hyperlink working when you hardcode a hyperlink in the expression like:
="http://www.experts-exchange.com/Database/Reporting_/Q_27831222.html?cid=1752"

Open in new window

(but using your hyperlink of course). If that's working change the hardcodes hyperlink to the expression step by step. Start adding the
+ Fields!GTRI_CustomerPO.Value.ToString() +

Open in new window

part for example and test if the hyperlink is still working. Work you way up to the final formula like this step by step.
You can also try to put the expression in a textbox so you can see what the result is, and if it's what you expect.
0
 
Arthur_WoodCommented:
it would appear that you might be missing a couple of + opeartors

should it not be:

=Code.GetSitePath(User!UserID,Fields!site.Value.ToString())+"/Delivery%20Orders/Forms/AllItems.aspx?RootFolder=%2fsites%2f" + (User!UserID,Fields!site.Value.ToString()) + "%2fDelivery%20Orders%2f" + Fields!GTRI_CustomerPO.Value.ToString())+"&type=4"

AW
0
 
newjeep19Author Commented:
The above suggetsion did work with modifications made to it
0
All Courses

From novice to tech pro — start learning today.