Create a button that generates the report
Generate a PDF report with a press of a button.
- Create the button:
- In theProject viewpane, right-clickMainWindow (type), and select .
- Hover-over the button, select , and enterGenerateReportButton.
- In thePropertiespane, set theTextproperty value toGenerate Report.
- Configure the button:
- In theEventspane, next toMouseClick event, select and select
- UnderMethod arguments, set theOutputPathproperty value.Enter the file path where you want to save the report.For example, enter:C:\Users\user_name\Documents\Reports\Report.pdf
- user_name
- Your Windows user name. For example,JohnDoe
Fornire un feedback