Export to PDF in landscape. HeaderFooterExporting event not raised

Header and footers work but with landscape event not raised

        Dim ts As MemoryStream = New System.IO.MemoryStream
        Dim options As New PdfExportingOptions()
        AddHandler options.HeaderFooterExporting, AddressOf options_HeaderFooterExporting
        Dim document = New Syncfusion.Pdf.PdfDocument()
        document.PageSettings.Orientation = Syncfusion.Pdf.PdfPageOrientation.Landscape
        Dim page = document.Pages.Add()
        Dim PDFGrid = SfDataGrid1.ExportToPdfGrid(SfDataGrid1.View, options)
        Dim format = New Syncfusion.Pdf.Grid.PdfGridLayoutFormat() With {.Layout = PdfLayoutType.Paginate, .Break = PdfLayoutBreakType.FitPage}
        PDFGrid.Draw(page, New PointF(), format)
        document.Save(ts)
        RaiseEvent _DoPrint(ts)
 

2 Replies 1 reply marked as answer

TW Tim Webster November 9, 2020 11:30 PM UTC

Sorted. Added the header/footers to pdf document generated by PDFGrid.Draw

Marked as answer

MA Mohanram Anbukkarasu Syncfusion Team November 10, 2020 06:25 AM UTC

Hi Tim, 

Thanks for contacting Syncfusion support.  

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 

Regards, 
Mohanram A. 


Loader.
Up arrow icon