Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Actually all export functions are integrated into one window invoked by the ‘Print’ button
                                    When you click the Print button on the Advanced Playlist Manager window then a Print indow open where from its File menu you can export playlist to excel

                                0

                                That was not itwhat I suggested,
                                So, actually all export functions are integrated into one window invoked by the ‘PrintPreview’ command
                                However I have found that is confusing for user and they cannot find an easy way to export grid
                                Isuggest to create a method with enumeration liek GridControl1.ShowPrintPreview(Html) or GridControl1.ShowPrintPreview(Xsl) etc so this method will open a PrinPreview window exacly as the enduserclick the export button from window's File menu. doesit make any sense?

                                0

                                Hi Jerzy ,

                                Thank you for contacting us.

                                I apologize, but your suggestion is not quite clear. Do you want to export GridControl directly to a file without showing the PrintPreview window at all? If so, please use methods described here: Export methods and Settings.

                                If this is not what you need, please describe the desired behavior in greater detail.

                                Thanks
                                Dimitros

                                0

                                Oh, come on support people, learn your own product!
                                I already wrote:
                                GridControl1.ShowPrintPreview(Html) or GridControl1.ShowPrintPreview(Xsl) etc so this method will open a PrinPreview window ....

                                So if the original GridControl1.ShowPrintPreview() command is opening a preview window then what do you think should happen when I'm suggesting
                                to do it with enumeration like:
                                GridControl1.ShowPrintPreview(Html) or GridControl1.ShowPrintPreview(Xsl) etc etc?

                                0

                                Hi Jerzy,

                                When you click the File menu, it opens a dialog allowing you to specify export settings and export a document to a required format. Do you want to show Print Preview with already this dialog opened? If so, you can use the following code:

                                	
                                [C#]
                                private void simpleButton1_Click(object sender, EventArgs e) { ShowPrintPreview(PrintingSystemCommand.ExportXls); } private void ShowPrintPreview(PrintingSystemCommand fileType) { PrintableComponentLink pcl = new PrintableComponentLink(printingSystem1); pcl.Component = gridControl1; pcl.ShowPreview(); pcl.PrintingSystem.ExecCommand(fileType, new object[] { }); }

                                See the attached project.

                                However, it is not quite clear why you need to show Print Preview at all. You can export GridControl to a file directly by using ExportTo~ methods.

                                If this information does not help you, please fill the report's Proposed Solution field and describe the desired behavior in greater detail.

                                Thanks
                                Dimitros

                                dxSample.zip
                                0

                                Thanks for you suggestion
                                but, you know, VB is not dead yet, so I think you can also take it under consideration when propose solution to your end users, developers etc.
                                If C# is only official DevExpress language then my apologies.
                                By the way and my profile shows that I'm VB man, therefore do not understand C#

                                Anyway, thank you for your help and support.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners