Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Layout Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Layout Question

 Post Reply Post Reply
Author
Message
gduncan View Drop Down
Groupie
Groupie


Joined: 11 November 2009
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote gduncan Quote  Post ReplyReply Direct Link To This Post Topic: Layout Question
    Posted: 17 June 2015 at 6:36pm
Hi,

If anyone is able to help me I would like to produce the following layout in the Report Control.
The part I need the help with is the SUB TOTAL Line.

Display showing customer revenue this month.
+Customer 1
     Invoice INV0001     $51
     Invoice INV0003     $52
        SUB TOTAL           $103
+Customer 2
     Invoice INV0002     $50
        SUB TOTAL           $50
+Customer 3
     Invoice INV0004     $15
       SUB TOTAL           $15
-----------------------------------------
THIS MONTHS TOTAL    $168


I have managed to get this working in a very fudged way and that is very draining on resources. I am hoping that someone can point me to some feature within the control to achieve this layout that I am unaware of.

Thank You.

Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 18 June 2015 at 2:51am
Hi,

Try to use XAML
https://msdn.microsoft.com/library/windows/apps/xaml/hh465055.aspx/

 
Private Sub Form_Load()
wndReportControl.EnableMarkup = True
   ...
End Sub

Private Sub AddRecord(...)
Dim Record As ReportRecord
Set Record = wndReportControl.Records.Add()

Dim Item As ReportRecordItem
Set Item = Record.AddItem("")
  Item.Caption = "<Line Stroke='Black' X2='400' VerticalAlignment='Center'/>"
...
End Sub

Regards,
 Oleksandr Lebed
Back to Top
gduncan View Drop Down
Groupie
Groupie


Joined: 11 November 2009
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote gduncan Quote  Post ReplyReply Direct Link To This Post Posted: 18 June 2015 at 5:31pm
Thank you for taking the time to reply.

What I need is a footer item within each parent item in the tree (the customers). This would be used to show the totals for all the child items (the invoices)

As I said I have managed to fudge this by manually adding a row, using custom drawing to shade it, setting some hidden grouping to force it to the bottom.... and while this does work, when the report control starts getting a lot of data in it the thing just grinds to a halt.

If this isn't possible now, could I request this feature for a future release please.

There is a property called "Sections" on the report control. I was hoping maybe this might be something that could help. The documentation just says sections are sections so not very helpful.

Thanks again.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 18 June 2015 at 6:15pm
You can look how sections looks and uses in our ReportSample

in MainMenu->"Additional Samples"->"Merged Cell Sample"
c:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v16.4\Samples\ReportControl\VB\ReportSample\Merge.frm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.