Skip to Content
0
Former Member
May 02, 2013 at 11:32 AM

Printing images on a CR report through code

91 Views

Hi everyone,

I have a problem with printing images on my report. I have created a report with 3 images in the header. The path of the images I pass to the report through code in VB.net. I had a report viewer on my form and loaded my report in the report viewer. It showed my report perfectly, with the images. When I clicked the print button on the report viewer, it printed my report with the images.

Now I want to print the report directly through code and therefore I used the function PrintToPrinter. When the report is printed with this function, the images are not printed. I also tried to print the report from the report viewer through code, using the Print function from the report viewer, and also in this case the images are not printed.

I need to print my report through code in VB.net, because the report must be created in the background. The user of the application may not see the report and I need to have the images on my report, because they contain essential information for my report. Can someone help me fix this problem?

Thanks in advance.