Ticket Q582043
Visible to All Users

Report group header, an group element position

created 11 years ago

Hi DevExpress Team !

Please view the attachement.
In the attachement there are 2 files :
- Report designer - an invoice design
- The printed invoice

How can I solve the next problem :
If I have a group, I would like to set the same line the first group element(s), than the group header as you can see in the attachements.

I hope the question, and the illustration was clear enough.

Thanks for the help,
Zoltan

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Zoltan,
Thank you for the provided screenshots.
To achieve this goal, I suggest you place the XRSubreport control to the right of the controls in the Detail1 DetailBand and use the How to: Create a Master-Detail Report using Subreports tutorial approach. To show only the first record, you can set the DetailCount to '1' for the report that will be assigned as ReportSource for the XRSubreport control.
Please try this and let me know if you need further assistance.
Thanks

    Comments (2)

      Hi Dmitry !
      I was afraid of, you suggest using of subreports.
      If I use subreports,
      - can I summarize this subreports ?
      (If you review the invoice, you can see the 1 141,8 at the bottom of the page.
      - how can I pass filter to this subreport runtime ?
      I thinnk,- it would be more complicated, than I reconstruct the invoice report.
      Thanks for the help,
      Zoltan

      Dmitry Tokmachev (DevExpress) 11 years ago

        Hi Zoltan,
        Take a look at the How to calculate a grand total summary for a detail report's summaries Code example. It demonstrates how to calculate the grand total value for detail reports.
        As for passing a filter value to the subreport at runtime, I suggest you handle the XRSubreport.BeforePrint event and then set the FilterString property as required:

        C#
        void report_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { (sender as XRSubreport).ReportSource.FilterString = "Value"; }

        Let me know if I can be of more help.
        Thanks

        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.