Print Page | Close Window

Layout Question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22634
Printed Date: 23 November 2024 at 7:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Layout Question
Posted By: gduncan
Subject: Layout Question
Date 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.




Replies:
Posted By: olebed
Date Posted: 18 June 2015 at 2:51am
Hi,

Try to use XAML
http://msdn.microsoft.com/library/windows/apps/xaml/hh465055.aspx/" rel="nofollow - 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


Posted By: gduncan
Date 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.


Posted By: olebed
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net