[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
How can we change the default drop-down button of the PrintPreview window
Answers approved by DevExpress Support
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
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
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
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