Ticket Q371072
Visible to All Users
Duplicate

GridControl - The GridControl is not printed correctly

created 12 years ago

The post was moved by Maxim (DevExpress Support)
Hello,

I need to be able to print the selection of a Master-Detail Grid in ServerMode and I have this issue : only master are printed. Details are printed empty.
Can you provide a workaround and let me know when this bug will be fixed ? I cannot filter my datasource before printing because it would require an "IN (key1, key2, key3…)" that quickly overflows SqlServer limit.

Regards,
Guillaume

Show previous comments (1)

    To reproduce the behavior you need a server mode datasource with master detail then enable PrintDetails but do not enable ExpandAllDetails. As you didn't managed to reproduce the issue, please send me your project so I can check what is different in my context.

    DevExpress Support Team 12 years ago

      Hi Guillaume,
      This is my test project. It is not quite clear why you turned off the ExpandAllDetails property. Would you please clarify this point?
      I am looking forward to your response.

        Hi Maxim,
        ExpandAllDetails = false is the default behavior of DX and our customers expect the printing to match the state of the control. We added a button to expand everything. They can use it before printing.
        In your sample, ExpandAllDetails is set to true. Try setting it to false.

        Answers approved by DevExpress Support

        created 12 years ago (modified 11 years ago)

        Hi,
        Yes, I see the behavior you are talking about. Since the ServerMode - master-detail - it is only possible to print master detail data if the OptionsPrint.ExpandAllDetails option is activated inquiry is not implemented yet, in the Server Mode, only all the detail Views can be exported/printed with the enabled GridView.OptionsPrint.ExpandAllDetails option.
        We cannot provide you with an estimate on when this feature will be implemented since it depends upon multiple factors. I have discussed this request with our developers, and they do not have plans to introduce this functionality in the near future. In any case, since you are tracking the ServerMode - master-detail - it is only possible to print master detail data if the OptionsPrint.ExpandAllDetails option is activated thread, you will be notified if its status is changed.
        In the meantime, you can work around this issue if you show master and detail data in two separate grids as shown in the How to display detail data in a separate GridControl when the master grid is in Server Mode example. In this case, print data from both grids. However, this approach allows you to show only one detail View for a focused row in a master View.
        I hope that this solution will be of help.

          Comments (2)

            Any progress on this issue? The original poster (Guillaume) touched on the critical issue here, i.e. 'customers expect the printing to match the state of the control. ' This print/export issue is a critical shortcoming (to say the least), given how the ServerMode/InstantFeedback modes are otherwise perfectly suited to working with large datasets.

            DevExpress Support Team 11 years ago

              Hi,
              We did not implement the ServerMode - master-detail - it is only possible to print master detail data if the OptionsPrint.ExpandAllDetails option is activated functionality yet. Once we introduce this feature, you will be notified by email.
              I understand that this feature is important. However, I cannot provide an estimate as to when this feature will be implemented. In the meantime, please use the workaround suggested in my answer.

              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.