PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Image position in Cell
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2876
Page 1 of 1

Author:  SQueek [ Wed Jul 30, 2014 8:57 am ]
Post subject:  Image position in Cell

i want to position an image starting at the left side of the cell.
but it's impossible. the image starts after a little padding on the left side of the cell.
what is the right way to position the image?

var flatbildCell = row.Cells[5];
var flatbildImagePath = Imagepath(rundownkurz.FlatbildUrls[0], false);

flatbildCell.Borders.Distance = "0cm";
flatbildCell.Format.Alignment = ParagraphAlignment.Left;
flatbildCell.Format.LeftIndent = "0cm";
flatbildCell.Borders.DistanceFromLeft = "0cm";

image = flatbildCell.AddImage(flatbildImagePath);
image.Left = "0cm";
image.Top = "0cm";
image.WrapFormat.DistanceLeft = "0cm";

Attachments:
File comment: Preview
preview.png
preview.png [ 10 KiB | Viewed 4312 times ]

Author:  Thomas Hoevel [ Mon Aug 04, 2014 9:15 am ]
Post subject:  Re: Image position in Cell

An SSCCE will help us to replicate the issue.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/