How can I pass an image of a windows forms panel to crystal report? [closed]

0

I want to know how you can pass an image from a panel to a Crystal Report report.

The image is a bar code that I generated, and I pass it to the report, but I can not pass the image to the report

How can I pass the image?

    
asked by Macx 19.09.2018 в 15:37
source

1 answer

2

If the report is linked to a typed DataSet you can assign it to a field of this and use it in the report

Crystal Reports - Upload image using a report layer

In the article I explain how you can do it, you will see that I use an xsd

The idea is from code to assign the image

Empleados.EmpresaRow row = empleado.Empresa.NewEmpresaRow();
row.Logo = ImageHelper.ImageToByteArray(ImageHelper.ObtenerImagenLogoEmpresa());
empleado.Empresa.Rows.Add(row);

The row of the datatable is created to assign the byte array of the image, finally assign the typed dataset as source of the report

report.SetDataSource(empleado);
    
answered by 19.09.2018 / 16:55
source