Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to save HTMLViewer to PDF with landscape orientation?
Answer: You can use NSPrintInfoMBS to change the options for PrintToPDFFile function.
// make it landscape
dim n as NSPrintInfoMBS = NSPrintInfoMBS.sharedPrintInfo
n.orientation = n.NSLandscapeOrientation

// save html to file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
call HTMLViewer1.PrintToPDFFileMBS(f,10,30,10,30)
You may want to reset options later.
This code is only for Mac OS X.

Feedback, Comments & Corrections

The biggest plugin in space...

MBS Xojo PDF Plugins