You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Добавляю несколько изображений в цикле, как это сделано в тесте библиотеки, но все картинки отображаются только как первая. В архиве они есть, но в document.xml.rels тоже только первая.
foreach (var A in Doc.Attachments)
{
if (A.AType == Types.AttachmentType.Photo)
{
var Photo = A as Types.Attachment.Photo;
var image = document.AddImage(new System.IO.MemoryStream(Photo.Data), Wordroller.Content.Images.KnownImageContentTypes.Jpg);
var picture = section.WrapImageIntoInlinePicture(image,
$"{Photo.Id}",
Photo.Text,
300,
Photo.GetHeight(300));
var paragraph = section.AppendParagraph();
paragraph.AppendPicture(picture);
}
else
{
var paragraph = section.AppendParagraph();
paragraph.AppendText(A.ToString());
}
}
The text was updated successfully, but these errors were encountered:
Добавляю несколько изображений в цикле, как это сделано в тесте библиотеки, но все картинки отображаются только как первая. В архиве они есть, но в document.xml.rels тоже только первая.
The text was updated successfully, but these errors were encountered: