Hello, I cannot seem to get any RecordBoxes to expand that have alot of text.
Heres my code:
Sub SetBodyObj(objBody)
'Adds Report Elements to the Body
Dim objRectangle,objDescr,objCredit,objWithdrawal
With objBody
.Height = 15
.Expandable = True
Set objRectangle = .AddRectangle(0, 0, 504, 15, "E0E0FF", , , , DPDF_ApplyColor_Fill)
objRectangle.ShowAlternateRow = True
.AddRecordBox "Date", 0, 0, 70, 9, , intVerdanaFont, 9
Set objDescr = .AddRecordBox("Descr", 68, 0, 250, 9, , intVerdanaFont, 9)
objDescr.Expandable = True
Set objWithdrawal = .AddRecordBox("Withdrawal", 250, 0, 100, 9, DPDF_Align_Right , intVerdanaFont, 9)
objWithdrawal.DataFormat = "##,##0.00"
Set objCredit = .AddRecordBox("Credit", 306, 0, 225, 9, DPDF_Align_Right, intVerdanaFont, 9)
objCredit.DataFormat = "##,##0.00"
End With
End Sub
Expandable Property
Re: Expandable Property
Support · Dec 3, 2005The code looks correct and the record should expand when the "Desc" field requires more than 9 points. If you want other records to expand as well, you will need to set thier Expandable properties to True.
What behavior are you seeing with the code?
Thanks,
ceTe Software Support Team