Ticket T311555
Visible to All Users

How can we change the default drop-down button of the PrintPreview window

created 9 years ago

[DevExpress Support Team: CLONED FROM T295323: PrintPreview - Provide a way to customize report export commands]
Thanks it now works great replacing the images in the Export and Send galleries. However how can we change the default drop-down button? Please see attached image showing the default drop down button.
Thanks!
Alex

Comments (2)
Vasily (DevExpress Support) 9 years ago

    Hi Alex,

    Your task is not completely clear to me. Would you please describe it in greater detail? How would you like to change the drop-down button? If possible, send us a detailed screencast that illustrates what you want to achieve.
    We are looking forward to hearing from you.

      Hello Vasily,
      Please see original request:
      https://www.devexpress.com/Support/Center/Question/Details/T200488
      This is to replace the DocumentViewer control default icons in the galleries. With the new addition in 15.1.8 we can now change the icons in the Export and Send Galleries.
      Now I've installed 15.1.8 and successfully replaced the icons on the Export and Send Galleries. The only icon left to replace is 'main' drop down button. Please see this little video showing the standard gallery vs the ones which I replaced the icons:
      http://screencast.com/t/xu2AKjXrFalA
      Now the only icons I'm not able to change is the default drop down. The one linked to command SendFile and ExportFile.
      How can I change these 2 icons?
      Thanks
      Alex

      Answers approved by DevExpress Support

      created 9 years ago

      Hello Alex,

      Thank you for the provided clarification.

      It is necessary to use a slightly customized approach from the PrintPreview - Can't modify DropDown items icons thread to achieve this goal. By the way, I would like to note that for now there is no public way to set a small image for those drop-down items, so it is required to use Reflection methods. I've attached a sample project demonstrating how to achieve this goal.

      In the meantime, I suggest that you review the following threads where we have already described another possible way to achieve this goal:

      Custom Icons for Print Preview Ribbon
      DocumentViewer - Cannot change icons for ribbon items

      Let me know if you need further assistance.
      Thanks,
      Dmitry

        Show previous comments (3)
        Dmitry Tokmachev (DevExpress) 9 years ago

          Hello Alexandre,

          Thanks for the follow up.

          After further digging into our source code I've found a much more elegant solution, but it still requires using reflection methods. You'll find a sample project demonstrating the solution in the attachment. In the meantime, I've registered a separate thread and forwarded it to our R&D team for improving our API to be able to achieve this goal without the use of reflection methods: DocumentViewer - Provide a way to change the icons of the Export drop down. Please add that thread to your favorites to be notified of our progress: I'm going to personally track that thread and provide a sample project there to demonstrate the correct solution once the API has been changed.

          Thank you,
          Dmitry

            Hello Dmitry,
            Thanks for the new solution. It seems to fix most of the problems except this one:
            http://screencast.com/t/bn6wzTbTKg
            Any idea how to fix this one as well?
            Thanks,
            Alex

            Dmitry Tokmachev (DevExpress) 9 years ago

              Hello Alex,

              This icon is managed by the PrintPreviewRibbonPageGroup.Glyph property value and it seems that it is possible to change it right from the designer as I demonstrated in the attached screencast. Would you please check this?

              Thanks,
              Dmitry

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.