Hello,
I forgot on previous posts to mention that I m total newbie and hope the questions are not annoying. After setting up invoices to be printed, the only way I found to get this working is to use a macro found on her (see below) now this will print all the forms that have been written, of course I would like to print only that one form I am working on. Is there a way to get this done ? and given I do not know about macros at all, is there a way to get to print from a form without using a macro?
Thanks much!
Sub OpenReport
oDrawPage = ThisComponent.getDrawPage()
oForm = oDrawPage.Forms.getByName(“MainForm1”)
If oForm.IsNew then
oForm.insertRow()
else
oForm.updateRow()
EndIf
ocontroller = Thisdatabasedocument.currentController
if not ocontroller.isconnected then ocontroller.connect
oreportdoc = Thisdatabasedocument.reportdocuments.getbyname(“Rpt_Invoice1_4”).open
End Sub