Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hallo DevExpress-Team,

                                    I have in my project e very special layout of a report. With a grouped column i make some kind of headline. This worked fine until Version 2010.1. In the actual release it works fine in the normal Grid-Layout. But when i try to print the grid with the PrintPreview, these "headlines" have a different Font (some kind of standard Font). Am I missing a property or is it an issue in 2010.2?

                                    Please see attached project to see the problem.

                                    Thanks for your help.

                                GridTest.zip
                                0

                                Hi Johann,

                                Thank you for providing us with a sample project. We have reproduced the issue and our developers are investigating it.

                                For now, you can set the OptionsPrint.UsePrintStyles property to True and configure the Grid printing appearance explicitly using the Print Appearances page in the Grid designer. I have updated your sample project to illustrate how to accomplish this.

                                Thank you,
                                Pavel.

                                dxSample.zip
                                0

                                Hi Pavel,

                                thanks for the Workaround. But I need the Fond customizable, so this workaround isn't that usable to me.
                                I havn't been working on that module for a while and just found out, that an equal bug exists since 10.1.6, and that is the "productive" library I use. Will it be fixed there, too? Will there be a new 10.1.x-Release or will I have to use the 11.1.x Version?

                                Thank you.

                                GridTest2.zip
                                0

                                Hi,

                                I now fix it programmatic:
                                            gridView1.OptionsPrint.UsePrintStyles = true;
                                            gridView1.AppearancePrint.GroupRow.Font = ...
                                            gridView1.AppearancePrint.HeaderPanel.Font =...
                                            gridView1.AppearancePrint.Row.Font = ...
                                I had already tried this before, but didn't know I have to set
                                gridView1.OptionsPrint.UsePrintStyles = true;
                                Now it works fine.

                                Thank you.

                                0

                                Hi Johann,

                                First of all, I must say that the fix will be introduced for the 11.1 version only, because this fix changes the control behavior during printing, which may affect existing applications of our customers.

                                However, if you are using DevExpress v10.1.6, I believe that you can still use the workaround, because you can customize font settings used for printing via code:

                                	
                                [C#]
                                // Setting the font for printing gridView1.OptionsPrint.UsePrintStyles = true; gridView1.AppearancePrint.GroupRow.Font = new Font(font.Name, font.Size, font.Style); gridView1.AppearancePrint.HeaderPanel.Font = new Font(font.Name, font.Size - 1, font.Style); gridView1.AppearancePrint.Row.Font = new Font(font.Name, font.Size - 1, font.Style);

                                I have updated your sample project to illustrate the idea. Please let us know if this solution satisfies your requirements.

                                Thank you,
                                Pavel.

                                dxSample.zip
                                0

                                Hi Pavel,

                                like I wrote this workaround now works fine to me.
                                Thanks for your help and the answer, which Version contains the fix.

                                0

                                Hi Johann,

                                I'm glad to hear that my assistance was useful. We are always happy to help you. Please feel free to contact us at any time.

                                Thank you,
                                Pavel.

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.

                                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.

                                Your Privacy - Legal Statements

                                Copyright © 1998-2013 Developer Express Inc.
                                ALL RIGHTS RESERVED
                                All trademarks or registered trademarks
                                are property of their respective owners