Page 1 of 1

How to set parameter value is type image

Posted: Thu Nov 24, 2016 12:19 pm
by pdt1704
Hi all,
I have parameter variable has type is image, how can I set byte array to this parameter.
Please help.

Best Regards,
Thanh

Re: How to set parameter value is type image

Posted: Fri Nov 25, 2016 7:22 am
by HighAley
Hello, Thanh.

You could use next code to load the image from byte array:

Code: Select all

report.Dictionary.Variables["Image"].ValueObject = Image.FromStream(new MemoryStream(bytes));
Thank you.

Re: How to set parameter value is type image

Posted: Fri Nov 25, 2016 10:30 am
by pdt1704
Hi HighAley,
It run OK now.
Thank you.

Best Regards,
Thanh

Re: How to set parameter value is type image

Posted: Fri Nov 25, 2016 11:00 am
by HighAley
Hello, Thanh.

We are always glad to help you.
Let us know if you need our help.

Thank you.