﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>c360 Forums / SDK for Microsoft CRM / Version 3 Product Questions  / how can  we forbidden "Print" and "Export Excel" buttons? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>c360 Forums</description><link>http://www.c360.com/Forums/</link><webMaster>support@c360.com</webMaster><lastBuildDate>Fri, 21 Nov 2008 08:04:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>I know it was an example ;)&lt;br&gt;&lt;br&gt;But it was my mistake, I was trying to remove the buttons from the buttonbar, before it was built, so that's why I got the outofrangeexception.&lt;br&gt;&lt;br&gt;maybe useful information for other users:&lt;br&gt;"Save" is index[0]&lt;br&gt;"Save and Close" is index[1]&lt;br&gt;"Save and New" is index[2]&lt;br&gt;&lt;br&gt;Thanks for helping me with this Jeremy!</description><pubDate>Wed, 16 Jan 2008 14:18:05 GMT</pubDate><dc:creator>Hanno Zwikstra</dc:creator></item><item><title>RE: how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>"4" was just an example. You need to figure out the index of the button you actually want to remove (I don't know by heart the index of the "Save" and the "Save and Close" button").</description><pubDate>Wed, 16 Jan 2008 13:05:02 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>RE: how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>thanks for the quick reply :)&lt;br&gt;&lt;br&gt;I tried your code, but it returns an outofrangeexception (I tried values from 0 to 4)&lt;br&gt;I also tried the removeAt (int index) method which should give the same result, but is easier to use (am I right?), but it also returns an outofrangerexception. &lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 16 Jan 2008 12:56:05 GMT</pubDate><dc:creator>Hanno Zwikstra</dc:creator></item><item><title>RE: how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>The name of the button is not the indexer for the "ButtonMenu.Items" collection. Therefore, to remove a button from this collection you must get a reference to the button in question and remove it from the collection. Something like this:&lt;P&gt;[code]Instance.ButtonMenu.Items.Remove(Instance.ButtonMenu.Items[4]);[/code]&lt;/P&gt;&lt;P&gt;Also, keep in mind that there is a property called "IncludeStandardButtons" which you can set to "false" to remove all the buttons at once.</description><pubDate>Wed, 16 Jan 2008 12:32:13 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>RE: how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>I have almost the same question:&lt;br&gt;&lt;br&gt;how to remove the "save and close" and "Save and New" buttons on an edit page?&lt;br&gt;&lt;br&gt;I think it should be [code]Instance.ButtonMenu.Items.Remove("name_of_button")[/code]&lt;br&gt;but I can't find the button names anywhere..</description><pubDate>Wed, 16 Jan 2008 12:17:41 GMT</pubDate><dc:creator>Hanno Zwikstra</dc:creator></item><item><title>RE: how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>I'm guessing you are talking about the "Print" and "Export to Excel" buttons on our Grid control??? You can remove these buttons by setting the "AAlowPrint" and "AllowExportToeXcel" properties to false.</description><pubDate>Wed, 16 Jan 2008 11:29:56 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>how can  we forbidden "Print" and "Export Excel" buttons?</title><link>http://www.c360.com/Forums/Topic1912-8-1.aspx</link><description>i want to forbidden "Print" and "Export Excel" buttons for some roles.&lt;/P&gt;&lt;P&gt;how can we do?&lt;/P&gt;&lt;P&gt;"Happy new years"</description><pubDate>Mon, 24 Dec 2007 03:56:25 GMT</pubDate><dc:creator>eaytar</dc:creator></item></channel></rss>