Posted 9 July 2019, 8:26 am EST
Hello Folks,
I am trying to create a RDLx Report with VB.NET Code to pull Width’s of Containers to then calculate and set the widths of secondary containers.
Something like a Bootstrap Grid where all the Report elements are responsive to each other.
Looking at the Samples and Documentation for Active Reports 12, I found that you can call (Dim rpt As New GrapeCity.ActiveReports.PageReport())
and then use a While loop to cycle through ReportITems and adjust various Item selected Properties.
EX…
Do While (i <= (rpt.Report.Body.ReportItems.Count - 1))
Dim a As String = rpt.Report.Body.ReportItems(i).Name
If (a = “TextBox5”) Then
Dim temp As Style = New GrapeCity.ActiveReports.PageReportModel.Style
temp.BackgroundColor = “LightPink”
temp.Color = “DarkGreen”
rpt.Report.Body.ReportItems(a).Style = temp
rpt.Report.Body.ReportItems(a).Left = “2in”
rpt.Report.Body.ReportItems(a).Style.FontFamily = “Algerian”
rpt.Report.Body.ReportItems(a).Style.FontSize = “20pt”
rpt.Report.Body.ReportItems(a).Style.FontWeight = “Bold”
rpt.Report.Body.ReportItems(a).Style.TextAlign = “Center”
End If
i = (i + 1)
Loop
The Problem is that we are using the Active Reports 12 End User Designer and can only use RDLx Reports with VB.NET
Is there a Correct way that I can pull Object properties from the End user Designer ?