Hello to all;
I would like to give thanks to all developers who participated on this project for creating such a great tool for us to use freely.
I created this topic/issue so I can raise my minor problem with using the EPPlus for inserting pictures. The problem is, I have lots of images with different sizes that will be processed inside my Thumbnail function that will output miniature sizes. But when I insert it inside the excel via EPPlus the output seems wrong and I don't know exactly what the ratio it uses. The temporary solution is to right click on the picture then Size and Properties, on the dialog I would click the "Reset" button to use the original size being generated on my Thumbnail function. But I'm talking to a large records, so I cannot click all images just to click the "Reset" button to use the original size.
this is my code:
picture = ws.Drawings.AddPicture("pic" + rowIndex.ToString() + columnIndex.ToString(), image);
picture.From.Column = columnIndex;
picture.From.Row = rowIndex;
ws.SetValue(rowIndex + 1, columnIndex, image.Width.ToString() + " " + image.Height.ToString());
picture.SetSize(image.Width, image.Height);
I really appreciate it you could direct me to the right path on dealing with this problem.
Thanks and more power on this Product.
Comments: I have asked it on stackoverflow and also posted the DoAdjustDrawings results http://stackoverflow.com/questions/15634709/epplus-setposition-picture-issue
I would like to give thanks to all developers who participated on this project for creating such a great tool for us to use freely.
I created this topic/issue so I can raise my minor problem with using the EPPlus for inserting pictures. The problem is, I have lots of images with different sizes that will be processed inside my Thumbnail function that will output miniature sizes. But when I insert it inside the excel via EPPlus the output seems wrong and I don't know exactly what the ratio it uses. The temporary solution is to right click on the picture then Size and Properties, on the dialog I would click the "Reset" button to use the original size being generated on my Thumbnail function. But I'm talking to a large records, so I cannot click all images just to click the "Reset" button to use the original size.
this is my code:
picture = ws.Drawings.AddPicture("pic" + rowIndex.ToString() + columnIndex.ToString(), image);
picture.From.Column = columnIndex;
picture.From.Row = rowIndex;
ws.SetValue(rowIndex + 1, columnIndex, image.Width.ToString() + " " + image.Height.ToString());
picture.SetSize(image.Width, image.Height);
I really appreciate it you could direct me to the right path on dealing with this problem.
Thanks and more power on this Product.
Comments: I have asked it on stackoverflow and also posted the DoAdjustDrawings results http://stackoverflow.com/questions/15634709/epplus-setposition-picture-issue