CppMax Homepage
Forum Home Forum Home > ReportMax > ReportMax
  New Posts New Posts RSS Feed - Alternate Color in reportmax field
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Alternate Color in reportmax field

 Post Reply Post Reply
Author
Message
Rockmode View Drop Down
Newbie
Newbie
Avatar

Joined: 25 Nov 2013
Location: PH
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rockmode Quote  Post ReplyReply Direct Link To This Post Topic: Alternate Color in reportmax field
    Posted: 17 Aug 2016 at 4:06am
Good day Mr. emadns

I just wanna ask.. Is it possible to have an alternate color grid using reportmax? If yes which version of reportmax and how? Please see the sample image below.. Thanx.

Back to Top
Rockmode View Drop Down
Newbie
Newbie
Avatar

Joined: 25 Nov 2013
Location: PH
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rockmode Quote  Post ReplyReply Direct Link To This Post Posted: 17 Aug 2016 at 4:14am
In vb.net please. Thank you.
Back to Top
emadns View Drop Down
Admin Group
Admin Group


Joined: 06 Feb 2012
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote emadns Quote  Post ReplyReply Direct Link To This Post Posted: 17 Aug 2016 at 3:53pm
There are two methods:

(Method Available before version 3.5)
1. Add a ReportMax Shape control in the Detail section according to the area you want to alternate. Make sure to right-click the control and select Bring to Back menu item. (Let's call it Shape1 in this example)
2. Declare variable named line as Integer in the class
3. Handle ReportMax event named Report_Detail_Format
4. In the Report_Detail_Format handler write the following code:

        Dim shape1 As ReportMaxShape

        ' alternate the shape color according to line value
        Dim i As Integer
        For i = 0 To Detail.m_aFields.Count Step 1
            If Detail.m_aFields(i).Name = "Shape1" Then
                shape1 = Detail.m_aFields(i)
                Exit For
            End If
        Next

        If line Mod 2 = 0 Then
            shape1.BackColor = Color.LightGray
        Else
            shape1.BackColor = Color.White
        End If

        line = line + 1

That should do it

However, if you need to have a fixed number of lines in the Detail section even if there is no enough data to fill it up, then you will need to download the latest version of ReportMax (Version 3.5.7). The property is a Page property named MinRows. Click anywhere on the design page and change this property to the number of lines. But this is a ReportMax 3.5 feature

Hope this helps

Back to Top
Rockmode View Drop Down
Newbie
Newbie
Avatar

Joined: 25 Nov 2013
Location: PH
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rockmode Quote  Post ReplyReply Direct Link To This Post Posted: 17 Aug 2016 at 10:46pm
Thank you.. I'll Try that..
Back to Top
emadns View Drop Down
Admin Group
Admin Group


Joined: 06 Feb 2012
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote emadns Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2016 at 7:56am
Small correction

Detail.m_aFields.Count should be Detail.m_aFields.Count -1
Back to Top
Rockmode View Drop Down
Newbie
Newbie
Avatar

Joined: 25 Nov 2013
Location: PH
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rockmode Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2016 at 10:54pm
Is there any affordable version of reportmax 3.5?
Back to Top
emadns View Drop Down
Admin Group
Admin Group


Joined: 06 Feb 2012
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote emadns Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2016 at 11:20pm
ReportMax is affordable compared to the other reporting tool packages. We put a lot of effort in it but we priced it to sell. Currently ReportMax 3.5 sells for 349 USD. Please Email sales@cppmax.com for any discounts
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.06
Copyright ©2001-2016 Web Wiz Ltd.