Hi
Please take a look at the attached code times. If the text has HTML tags in it, then get the document Zeilenschaltugen that do not belong over there.
The 1st Line but should have no rows scarf tune, like the 2nd Line without HTML.
What am I doing wrong?
regards Markus
Code:
Pdf pdf1 = new Pdf();
pdf1.TextInfo.FontName = "Trebuchet MS";
pdf1.TextInfo.FontSize = 10;
Section sec1 = pdf1.Sections.Add();
//ohne Tabelle
Text displayText =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded,
PositioningType = PositioningType.PageRelative
};
sec1.Paragraphs.Add(displayText);
//ohne Html
Text displayText2 =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded
};
sec1.Paragraphs.Add(displayText2);
// Save the resultant PDF document
pdf1.Save(@"c:/temp/PureTabelWithHtmlTest.pdf");
System.Diagnostics.Process.Start(@"c:/temp/PureTabelWithHtmlTest.pdf");
Pdf pdf1 = new Pdf();
pdf1.TextInfo.FontName = "Trebuchet MS";
pdf1.TextInfo.FontSize = 10;
Section sec1 = pdf1.Sections.Add();
//ohne Tabelle
Text displayText =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded,
PositioningType = PositioningType.PageRelative
};
sec1.Paragraphs.Add(displayText);
//ohne Html
Text displayText2 =
new Text(@"Nein, Ja")
{
IsHtmlTagSupported = true,
Bookmarked = BookmarkIncludeType.NonIncluded
};
sec1.Paragraphs.Add(displayText2);
// Save the resultant PDF document
pdf1.Save(@"c:/temp/PureTabelWithHtmlTest.pdf");
System.Diagnostics.Process.Start(@"c:/temp/PureTabelWithHtmlTest.pdf");