In a report containing many field I must include an image wich is traced with formulae and variable from a database. Since the image is different for each page of the report I decided that after tracing it with the GDI+ in C# I would include it in a dataset with the field from the report and 2 other field I populate in code.
So far thing are working nicely, the field from the database are printing correctly in the report. But the image and the field I populate in code are not printing on the report.
I assign the image in the database this way:
Graphics g;
g = Graphics.FromImage(imageBitmap);//blank bitmap
//tracing is done
dataSet.Tables["Order_cmd"].Rows["img"] = g;
, and for the text field:
dr_array[0]["og_diamMin"] = tempstr.Substring(0, 4) + "(" + ogDiamUtile + "
";
where dr_array is a array of datarow wich facilitate access to the corresponding row of each of the 3 tables in the dataset.
So now the report are printing(with no CrystalReportViewer, only a ReportDocument Object) but the field in the dataset I try to populate in code are not. Anyone know what I should do?
Thank you!
Charles
So far thing are working nicely, the field from the database are printing correctly in the report. But the image and the field I populate in code are not printing on the report.
I assign the image in the database this way:
Graphics g;
g = Graphics.FromImage(imageBitmap);//blank bitmap
//tracing is done
dataSet.Tables["Order_cmd"].Rows["img"] = g;
, and for the text field:
dr_array[0]["og_diamMin"] = tempstr.Substring(0, 4) + "(" + ogDiamUtile + "
where dr_array is a array of datarow wich facilitate access to the corresponding row of each of the 3 tables in the dataset.
So now the report are printing(with no CrystalReportViewer, only a ReportDocument Object) but the field in the dataset I try to populate in code are not. Anyone know what I should do?
Thank you!
Charles