Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - (SOLVED) Extend last Column to fit.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

(SOLVED) Extend last Column to fit.

 Post Reply Post Reply
Author
Message
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Topic: (SOLVED) Extend last Column to fit.
    Posted: 12 January 2011 at 5:50am
Hi
Is there anyway to get the report control to extend the width of the last column to fill the width of the control.
 
Many Thanks
 
Mark
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2011 at 6:27am

Hi Mark

I thought CJ added something to accomplish this, but I can't seem to find how...

The only solution I can give you right now is setting AutoColumnSizing to True and if you don't want other columns (auto)sized (see code below) or set MinimumWidth/ MaximumWidth for each column except last one:
 
With wndReportControl
        .AutoColumnSizing = True
     
        With .Columns
            With .Add(.Count, "Col 1", 100, True)
                .AutoSize = False
            End With
            With .Add(.Count, "Col 2", 100, True)
                .AutoSize = False
            End With
            With .Add(.Count, "Col 3", 100, True)
                .AutoSize = True
            End With
      End With
End With
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2011 at 7:01am
Aaron many thanks that what I was look for.
was looking only at the Col object never saw AutoColumnSizing
 
 
not long now until we get ver 15, I never updated from ver 13 even though I kept my support paid up
Hope it a good one!
 
Thanks again
Mark 
 
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2011 at 1:50pm
Hi,
 
Is this possible yet? (without the workaround I showed)
 
I thought LastColumnWidthWYSIWYG property would do that but I can't get it to work...
 
Thanks
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
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.191 seconds.