Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • hi

                                    I have a situation where i have to hide the tables based on a condition, i am doing the visible property true or false based on the condition on before print event of that table and also i tried using e.Cancel property on before print event. Now the scripts is able to hide the table but the space remains and in my case i don't need the space also. So please provide solution.


                                    Thanks

                                    Ajeet Kumar

                                hiding of tables xtrareport.docx
                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Hello Ajeet.

                                Thank you for your message. To accomplish this task, handle all XRTableRows' BeforePrint event and set the e.Cancel parameter to True there if it is necessary to suppress these XRTables.

                                Attached is an example that demonstrates this approach in action. We look forward to your feedback once you have had the opportunity to try our solution.

                                dxSample.zip
                                • Ram Gangupanthulu 07.23.2012

                                  hello Ingvar,
                                  Thanks for your suggestion ,I tried your suggestion but my main problem is to suppress the spaces while hiding the tables but using e.Cancel property the space remains there ,I also tried by making shrink property of each table cells as "Yes" but still spaces remains. Please provide the solution for removing the spaces.

                                  Thanks
                                  Ajeet kumar

                                • Would you please provide us with a sample project to demonstrate the issue? This will help us find a solution much faster.

                                  I am looking forward to hearing from you.

                                • Ram Gangupanthulu 07.24.2012

                                  Please find the attachment and kindly provide the solution asap. I hope this sample will help you for better understanding the scenario, Let me know if any further clarification is needed.

                                • I have updated my answer based upon your comment. Please review it.

                                You must  log in  or  register  to leave comments
                                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