Hi,
In my report, I put a OnBeforePrint script in one "Detail" band, under this "Detail" band, there are some crossbandline, one crossbandline is named as "cbvl5"
Here are code segment:
Private Sub OnBeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs)
Dim bPrintContainerNoAndDepot as Boolean
bPrintContainerNoAndDepot = False
[skip some codes]
if (bPrintContainerNoAndDepot = True) then
lblContainerNo.Visible = True
lblDepot.Visible = True
fldContainerNo.Visible = True
fldDepot.Visible = True
''Item size
else
lblContainerNo.Visible = false
lblDepot.Visible = false
fldContainerNo.Visible = False
fldDepot.Visible = False
cbvl5.Visible = False
[skip some codes]
while previewing this template, I got this error message:
Detail.OnBeforePrint, line 27: error BC30451: Name: "cbvl5" is not declared.
it seems that the program can not find "cbvl5". (but for other UI items like label, it is no problem to access them.)