Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Greetings everyone!
I need to link a report I created in an App to a button object, in order to print it (user's demand).
I'm aware that version 10 make it in the easiest way, but a new version of QV is out of question here...
Can any one help?
Thx in advance!
Fairly straightforward - you need to create a VBS macro - e.g.:
Sub PrintReport()
ActiveDocument.PrintReportEx "RP01"
End Sub
You can call the macro from a button.
Regards,
Stephen
Fairly straightforward - you need to create a VBS macro - e.g.:
Sub PrintReport()
ActiveDocument.PrintReportEx "RP01"
End Sub
You can call the macro from a button.
Regards,
Stephen
Stephen, thank you for answering!
I did as you say, and when I click the button, the EDIT MODULE screen comes up... any other detail to make the button open the report print popup?
Thanx again!!!
Just to clarify, I want the button to bring the PRINT popup, for the user to choose between printing it inpaper, or generating a PDF printer. Is it possible?
READ "generating PDF Printer" as "generating PDF file".
Try ActiveDocument.PrintReport "RP01", "", True - should show the dialog. Note this will only work for "thick" clients. Web clients will just get the report generated as PDF and then opened on their local machine.
Stephen
Stephen, it worked perfectly!!!
Thank you so much for your attention!!!