Adding Toolbar to Blank Application: Help needed

I have developed the code in a blank application. It works well but would like to add toolbars to the page that is part of the templates that does export to PDF.

Any suggestions on the approach here

If your code is not to complicated you can put it in a label in a form application

Clever trick, but unfortunately the code is bit more complicated. I certainly will keep this one in mind