Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

FMR: Running scripts or C# code from the custom toolbar button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G. Tarazi - 23 Sep 2004 17:44 GMT
Hi

I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the execute action with couple of parameters.

I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.
Steve van Dongen [MSFT] - 23 Sep 2004 19:41 GMT
>Hi
>
>I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the execute action with couple of parameters.
>
>I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.

See the Structual Editing SDK sample on the InfoPath CD, specifically,
the ApplyDiscount button on the toolbar.

The manifest.xsf has this in the toolbar
<xsf:button name="RemoveDiscount" caption="No Discount"></xsf:button>

And this in the script
function RemoveDiscount::OnClick()
{
    // Custom code
}

Regards,
Steve
--
Please post questions to the newsgroup; everyone benefits.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
G. Tarazi - 24 Sep 2004 02:05 GMT
Thank you

> >Hi
> >
> >I was adding a toolbar button to InfoPath, and I just realized that these buttons are very limited, all what I can do with the button is just use the
execute action with couple of parameters.

> >I hope this is wrong; I want to run my custom code, but if this is not possible, consider it as an FMR.
>
[quoted text clipped - 16 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Sample code subject to http://www.microsoft.com/info/cpyright.htm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.