Hello,
Today i have made an update from R1 2018 to R3_2020_SP1_14_2_20_1021_DEV and now all my reports does not behave as usual.
For instance, a simple data ItemDataBinding of a PictureBox to populate the phisical path of an image is not working ...
Same thing to htmltextbox ... it is not puting the value with ItemDataBinding to the report.
Can you help me? What do you need from me to solve my situation?
This is my code, that in the version R3 worked:
Private Sub PictureBox3_ItemDataBinding(sender As Object, e As EventArgs) Handles PictureBox3.ItemDataBinding
Dim item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)
If IO.File.Exists(System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "cabecalho.PNG") Then
PictureBox3.Value = System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "cabecalho.PNG"
End If
End Sub
Private Sub HtmlTextBox12_ItemDataBinding(sender As Object, e As EventArgs) Handles HtmlTextBox12.ItemDataBinding
Dim item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)
If IO.File.Exists(System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "contrato_header.txt") Then
Dim fileReader As String
fileReader = My.Computer.FileSystem.ReadAllText(System.Configuration.ConfigurationManager.AppSettings("Images").ToString() & "contrato_header.txt")
HtmlTextBox12.Value = fileReader
End If
End Sub
Thanks,
Nuno