我不知道如何摆脱添加段落时自动生成的书签:
Paragraph inicio = document.LastSection.AddParagraph();
inicio.Style = "Heading1";
inicio.AddSpace(110);
inicio.AddText("Factura nº");
inicio.AddText(facturaPat.FacturaN + "/" + DateTime.Now.Year);
inicio.Format.SpaceAfter = Unit.FromCentimeter(2);
inicio.Format.SpaceBefore = Unit.FromCentimeter(0.7);
Run Code Online (Sandbox Code Playgroud)
风格是:
style = document.Styles["Heading1"];
style.Font.Name = "Arial";
style.Font.Size = 10.5;
style.Font.Bold = true;
style.Font.Color = Colors.Black;
style.ParagraphFormat.PageBreakBefore = false;
Run Code Online (Sandbox Code Playgroud)
我正在使用的"Doc":
Document document = new Document();
...
PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(unicode, embedding);
pdfRenderer.Document = document;
// Layout and render document to PDF
pdfRenderer.RenderDocument();
Run Code Online (Sandbox Code Playgroud)
如果有人能告诉我如何在pdf打开时没有书签的情况下生成所需的内容,那将会很棒(我找不到解决此问题的方法).
谢谢
我有一个在我的xaml文件中定义的标准日历控件:
<Calendar Height="200" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0"
Name="NewCalendarYear" Width="200" SelectedDatesChanged="NewCalendarYear_SelectedDatesChanged" DisplayMode="Decade" />
Run Code Online (Sandbox Code Playgroud)
我遇到的问题是它在DisplayMode ="Month"时正常工作,但当将其更改为"Year"或"Decade"时,Calendar显示为空...一个箭头指向左侧(我不允许上传图片).我一直在搜索,但我没有找到任何在这些显示模式下正常工作的xaml日历代码示例.
谢谢