I have tried to get column width (just read it) but I couldn't do that.
I couldn't find column object in report properties.
could you tell me how to do it (read & write column object width)
You have a FieldObject located in the details section that repeats and creates columns. That field object has a Width Property and as vidru says go to the Detail section format event and set the field object to the new width.
Private Sub Section3_Format(ByVal pFormattingInfo As Object)
Field1.width = 500
End Sub
"Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'."
I have tried to resize column width by set new width value for field object but that doesn't make any effect to column width.
setting column width in design time is not related to field obj width ,,, normally this property is located in layout tab in section format dialoge box.
What version of Crystal Reports are you using and are you using the RDC?
"Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'."
Ok, I think you're talking about a report using multiple columns, and you want to change the width of the "columns".
In reports utilizing the multiple columns feature, the Details section(s) get(s) resized based on your settings (the Layout tab). Unfortunately, you can't set the Width of a Section at runtime (it's read only).
To get a nice overview of the CRAXDRT Object Model, I suggest you download the RDC Browser Utility:
DrJavaloe
yes I am using RDC.and my CR version is 8.5
Virdu
thanx for good referance you mentoined to.
yes you are right Column width is a read only property and could be set only in design time.
I don't know if this property became a read-write in latest version of CR.
I am gonna to work around this problem by give the user a limited options when selecting column numbers 2,3 or 4 and create a report for each option.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.