Send URL Parameter to Image component

Stimulsoft Reports.JAVA discussion
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Send URL Parameter to Image component

Post 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
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Send URL Parameter to Image component

Post 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
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Send URL Parameter to Image component

Post by rafaelwithoeft »

Thank you... the setting is working but the image component not render the image, why?
Best Regards
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Send URL Parameter to Image component

Post 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
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Send URL Parameter to Image component

Post by rafaelwithoeft »

Java
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Send URL Parameter to Image component

Post 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
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Send URL Parameter to Image component

Post by rafaelwithoeft »

Java Engine...
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Send URL Parameter to Image component

Post 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.
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Send URL Parameter to Image component

Post 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.
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Send URL Parameter to Image component

Post 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: /
Post Reply