For years, I have use a macro to print the current page of a writer document, as advocated by Andrew Pitonyak and others. Recently, instead of printing the page, it calls up the print dialogue. Any reason why this would be?
sub PrintPage
Dim oVC as Object, CurrentPage$, Props(1) As New com.sun.star.beans.PropertyValue
oVC = ThisComponent.CurrentController.getViewCursor
CurrentPage = trim(Str(oVC.getPage))
Props(0).Name = "Pages" : Props(0).Value = CurrentPage
ThisComponent.print(Props)
end sub 'PrintPage