Browse Source

Merge pull request #200 from knoxyz/patch-3

Replaced the obsolete methods from 2022.3 (ExternalLink and Location)
Marcin Ziąbek 3 years ago
parent
commit
a2d81b6adf
1 changed files with 4 additions and 4 deletions
  1. 4 4
      QuestPDF.ReportSample/Layouts/StandardReport.cs

+ 4 - 4
QuestPDF.ReportSample/Layouts/StandardReport.cs

@@ -55,7 +55,7 @@ namespace QuestPDF.ReportSample.Layouts
                     row.Spacing(50);
                     row.Spacing(50);
                     
                     
                     row.RelativeItem().PaddingTop(-10).Text(Model.Title).Style(Typography.Title);
                     row.RelativeItem().PaddingTop(-10).Text(Model.Title).Style(Typography.Title);
-                    row.ConstantItem(90).ExternalLink("https://www.questpdf.com").MaxHeight(30).Component<ImagePlaceholder>();
+                    row.ConstantItem(90).Hyperlink("https://www.questpdf.com").MaxHeight(30).Component<ImagePlaceholder>();
                 });
                 });
 
 
                 column.Item().ShowOnce().PaddingVertical(15).Border(1f).BorderColor(Colors.Grey.Lighten1).ExtendHorizontal();
                 column.Item().ShowOnce().PaddingVertical(15).Border(1f).BorderColor(Colors.Grey.Lighten1).ExtendHorizontal();
@@ -88,14 +88,14 @@ namespace QuestPDF.ReportSample.Layouts
                 column.Item().PageBreak();
                 column.Item().PageBreak();
                 
                 
                 foreach (var section in Model.Sections)
                 foreach (var section in Model.Sections)
-                    column.Item().Location(section.Title).Component(new SectionTemplate(section));
+                    column.Item().Section(section.Title).Component(new SectionTemplate(section));
                 
                 
                 column.Item().PageBreak();
                 column.Item().PageBreak();
-                column.Item().Location("Photos");
+                column.Item().Section("Photos");
                 
                 
                 foreach (var photo in Model.Photos)
                 foreach (var photo in Model.Photos)
                     column.Item().Component(new PhotoTemplate(photo));
                     column.Item().Component(new PhotoTemplate(photo));
             });
             });
         }
         }
     }
     }
-}
+}