I've been looking at the MS examples of creating custom Toolbar buttons, however they do not show how to link them to actual scripts embedded in the Form. I've been able to create the buttons themselves, I just need to link them to the proper VBScript functions I've created.
Does someone have an example for me to look at
thanks in Advance,

Linking Infopath Toolbar Buttons to VBScripts embedded in Template
Bala_SSRS
If you add a "test" button in your manifest.xsf using:
<xsf:toolbar caption="Sales Report" name="Sales Report">
<xsf:button name="test" caption="test"></xsf:button>
</xsf:toolbar>
You can then use:
Sub test_OnClick()
XDocument.UI.Alert("Hello World!")
End Sub
Hope that it helps.
Franck Dauche