Page 1 of 2

Send URL Parameter to Image component

Posted: Wed Apr 08, 2015 7:55 pm
by rafaelwithoeft
Hello, I have a component of type image in my report.
He will need to dynamically render different url's.

I have a variable in my report to receive this called: vr_logo_cabecalho, but even putting it in the component image in the Image URL tab this way ->

Code: Select all

 {vr_logo_cabecalho}
it does not render the image ... look:

Image

And in the Java Code i use this:

Code: Select all

report.getVariables().put("vr_logo_cabecalho", "http://fc08.deviantart.net/fs70/f/2010/018/8/c/Antauri_avatar_100x100_by_ChiroChick.png");
How do i send url to my report and he render it?

Best Regards

Re: Send URL Parameter to Image component

Posted: Thu Apr 09, 2015 7:14 am
by Vadim
Hello.
You must setup variables by this example:

Code: Select all

report.getDictionary().getVariables().get(variableName).setValue(value);
report.getVariables().put(variableName, value);
rafaelwithoeft wrote:Hello, I have a component of type image in my report.
He will need to dynamically render different url's.

I have a variable in my report to receive this called: vr_logo_cabecalho, but even putting it in the component image in the Image URL tab this way ->

Code: Select all

 {vr_logo_cabecalho}
it does not render the image ... look:

Image

And in the Java Code i use this:

Code: Select all

report.getVariables().put("vr_logo_cabecalho", "http://fc08.deviantart.net/fs70/f/2010/018/8/c/Antauri_avatar_100x100_by_ChiroChick.png");
How do i send url to my report and he render it?

Best Regards

Re: Send URL Parameter to Image component

Posted: Thu Apr 09, 2015 12:08 pm
by rafaelwithoeft
Thank you... the setting is working but the image component not render the image, why?
Best Regards

Re: Send URL Parameter to Image component

Posted: Fri Apr 10, 2015 6:59 am
by Vadim
Hello.
Do you use Java or Flex engine ?
rafaelwithoeft wrote:Thank you... the setting is working but the image component not render the image, why?
Best Regards

Re: Send URL Parameter to Image component

Posted: Fri Apr 10, 2015 12:31 pm
by rafaelwithoeft
Java

Re: Send URL Parameter to Image component

Posted: Fri Apr 10, 2015 12:39 pm
by Vadim
Hello.
You can watch it by looking at parameter "Engine.Type"
in response query: http://domain/webfx/stimulsoft_designer ... figuration
rafaelwithoeft wrote:Java

Re: Send URL Parameter to Image component

Posted: Fri Apr 10, 2015 1:03 pm
by rafaelwithoeft
Java Engine...

Re: Send URL Parameter to Image component

Posted: Fri Apr 10, 2015 6:17 pm
by rafaelwithoeft
I Have tested base64 data image, if i set directly in the report the image works and shows up, but if i send it by parameter... they not work. The same occurs with URL's.

Re: Send URL Parameter to Image component

Posted: Mon Apr 13, 2015 10:57 am
by Vadim
Hello.
Do you use latest product version?
Our test shows that all works perfect.
rafaelwithoeft wrote:I Have tested base64 data image, if i set directly in the report the image works and shows up, but if i send it by parameter... they not work. The same occurs with URL's.

Re: Send URL Parameter to Image component

Posted: Mon Apr 13, 2015 11:32 am
by rafaelwithoeft
Using 2014.3 Reports.Fx for Java, but I do not know why does not work ...
I tried passing URL and BASE64, but it only works when I use directly. Passing parameters does not work: /