I need your help adding an image to a PDF.
I'm using:
string imgPath2 = localPath + "\\TempChartImages\\" + LegendPath;
img2.Save(imgPath2);
ith.WriteImage(imgPath2, 80);
But this code gives me the error:
Use of unassigned local variable img2
How can I solve this error?