Bug Report T200488
Visible to All Users

PrintPreview - Can't modify DropDown items icons

created 10 years ago

Hi,
I have documentviewer control with ribbon. I' ve modified icons in ribbon to Office 2013 look, but I have problem with margins/orientation/paper size galleries. How to modify item icons in this galleries?

I' ve attached piece of screenshot to ilustrate the sample of gallery I can't deal with.

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

Additional information:

In the attachment, you'll find a sample project that demonstrates how to achieve this goal after installing a hotfix that we'll upload later into this thread.
Thanks

    Comments (3)

      This solutions works perfectly with the MarginsGallery, PageOrientationGallery and PaperSizeGallery. However I doesn't seem to work with PrintPreviewExportGalleryDropDown. How can we change those icons? Thanks!

      Yaroslav (DevExpress Support) 9 years ago

        Hi Alexandre,
        Thank you for your cooperation in improving our components. Indeed, while the provided hotfix eliminates the issue with most of the service BarItems, it seems that it's still impossible to provide a custom large glyph for various export option commands. To process this issue in a timely manner, I have decided to extract it into a separate thread: PrintPreview - Provide a way to customize report export commands. I've already discussed this behavior with our developers and they confirm that once a new hotfix is available, you can use the same code technique illustrated in this thread.
        Let us know if we can be of further assistance.

        Dmitry Tokmachev (DevExpress) 9 years ago

          Hello,

          We have changed the DocumentViewer customization mechanism in version v15.2 in the context of the DocumentViewer - Provide a way to change the icons of the Export drop down thread. All the trackers of this thread are welcome to review that thread for further details on a new approach.

          Thanks

          created 10 years ago

          Hi Krystian,

          Unless I am mistaken, you are using the DocumentViewer control on a custom form, but not the embedded Print Preview (via ReportPrintTool). When you create a RibbonControl instance using DocumentViewer routines, this action creates a resource file (PrintRibbonControllerResources.resx) that contains all required images. I think an optimal solution in this case is to replace required images in the resource file. Take a look at the attached video that illustrates my explanation.

          Should you have further questions, please let me know.

            Comments (2)
            KJ KJ
            Krystian Janaszak 10 years ago

              Hi Ingvar,
              I' ve tried to replace images in this resoure file but I have no results. There is no matter if I replace or even delete image from resource file, the old icons are always the same.
              I've prepared new small project for test (attached). In this project I've tried to replaec images for landscape and portrait page orientation and still no reluts.

              AR AR
              Andrew R (DevExpress) 10 years ago

                Hello Krystian,

                I have reproduced the issue and decided to forward it to our developers, so they can examine it thoroughly. This might take some time for us. Your patience is highly appreciated.

                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.