LotusScript to print either a Page or Frameset

I’ve been trying to write some code to print a Page (not a Form and this can not be changed).

However I have found that when I get to UIDOC.Print it says Document command not available.

I want to use LS as I do not want the print dialog box to appear and also need to set some COM values for PDF Creator.

Has anyone got a solution? Could I put the Page into a Frame and Print that, although I could work that one out either?

Thanks

Lee