Get parameter value

edited 4:51PM in FastReport .NET
Hi,

I'm trying to run this code from Fast Report

string durationString = ((string)Report.GetParameterValue("showDuration"));

and I always get error "Exception has thrown by the target of invocation"

What is wrong with this??

Thanks,

Comments

  • edited 4:51PM
    Hello,

    Check that parameter's expression returns a value of correct data type. For example, your parameter may be of String type, but its Expression returns 0. In this case you will get such error.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.