Print Page | Close Window

(SOLVED) Extend last Column to fit.

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=17774
Printed Date: 21 November 2024 at 1:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (SOLVED) Extend last Column to fit.
Posted By: markmark
Subject: (SOLVED) Extend last Column to fit.
Date 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



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


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


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



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