DynaPDFMBS License is required and available from:
https://www.monkeybreadsoftware.com/xojo/plugin-dynapdf.shtml

To create a PDF of DataView using DynaPDFMBS, simply add the DataView_With_DynaPDFMBS to your project and change the super of your DataView to DataView_With_DynaPDFMBS
and call SaveAsPDF(destination as FolderItem, info as PDF_Info_PDS)

You can also draw the list in a DynaPDF object using RenderInPDF(PDF as DynaPDFMBS, info as PDF_Info_PDS)



destination is the location to save the PDF

info is the PDF_Info object used to set various Options.

PDF_Info.Author is the author tag
PDF_Info.Columns is the list of columns to include
PDF_Info.Creator is the creator tag
PDF_Info.DrawBackground determines whether the cell background will be included
PDF_Info.DrawHeaderOnEveryPage adds the header to each page of a multipage pdf
PDF_Info.ExposeAllText will expand rows to allow all text (wrapped) to fit in the row
PDF_Info.Height is the page height to use on multipage pdfs
PDF_Info.Producer id the producer tag
PDF_Info.SinglePage will create a single page PDF sized to fit all rows
PDF_Info.Subject is the Subject tag
PDF_Info.Title is the title tag
PDF_Info.Width is the page width to use. If  left at 0, a multipage PDF will be 8.5x11. A single page will be sized to the list's current width.
PDF_Info.Widths() is the widths on the columns in Columns() default is calculated based on PDF_Info.Width
PDF_Info.X is the x postition to insert the view in a parent PDF (using RenderInPDF)
PDF_Info.Y is the Y position to insert the view in a parent PDF (using RenderInPDF)


If you need to do custom drawing, you can handle the PrintCell/PrintCellBG events and draw to the PDF object using me.PDF

Embedded Containers will also raise the PrintCell event where the PDF object can be accessed via DataView_With_DynaPDFMBS(self.view).PDF

