Form.saveAs() is deprecated. If you want to print a form layout, you must create a report and then import the form as as new report. You can then use report.saveAs().
Form.SaveAs as C ( Layout_Name as C [, Format as C [, Filter_Expression as C [, Order_Expression as C [, Output_Filename as C [, Open_Application as L [, PrintOptions as P [, Arguments as SQL::Arguments [, Options as P ]]]]]]]] )
DEPRECATED. The Form.SaveAs() method prints Layout_Name to file in PDF, HTML, RTF, or TXT formats. If no format is specified, the PDF format is used.
If you specify an optional Filter_Expression, the only records matching the filter are printed. (In addition to the filter specified here, the layout may have a filter defined within the layout definition).
The layout is printed to Output_Filename. If Output_Filename is not specified, the layout is printed to a file with the same name as the Layout_Name in the same folder as the database.
For more information and detailed description of parameters, see Report.SaveAs Function.