H
htngo23
Guest
Hello,
I have created a application that allows for reporting based on data in a Mongo Database. The report will require that each page that is NOT a "title" page, have two images at the bottom of the page, side by side. With my current approach, I am only able to have 1 image, and when I attempt to add both images, the second will rewrite the first.
foreach (Image img in listImages)
{
Paragraph imgGraph = document.Content.Paragraphs.Add(ref missing);
var resizedImages = ResizeImage(img, 300, 275);
Clipboard.SetDataObject(resizedImages);
picGraph.Range.Select();
picGraph.Range.Paste();
}
ResizeImage(), does exactly that, changes the height and width of the image which is why I did not provide code. How can I change my function in order to allow for images to be inserted side by side. Note that listImages will only have a count of 2 at a time.
Continue reading...
I have created a application that allows for reporting based on data in a Mongo Database. The report will require that each page that is NOT a "title" page, have two images at the bottom of the page, side by side. With my current approach, I am only able to have 1 image, and when I attempt to add both images, the second will rewrite the first.
foreach (Image img in listImages)
{
Paragraph imgGraph = document.Content.Paragraphs.Add(ref missing);
var resizedImages = ResizeImage(img, 300, 275);
Clipboard.SetDataObject(resizedImages);
picGraph.Range.Select();
picGraph.Range.Paste();
}
ResizeImage(), does exactly that, changes the height and width of the image which is why I did not provide code. How can I change my function in order to allow for images to be inserted side by side. Note that listImages will only have a count of 2 at a time.
Continue reading...