Discussion Locked

Change title of Crystal Report in VB.Net

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to change the caption in CrystalReportViewer from "MainReport" to my mother language. How can I do that ? I try many ways but nothings happened.

4 replies

by jaberna

Private Sub FormatReportViewer()
Dim thisObj As Object
Dim MyPageView As CrystalDecisions.Windows.Forms.PageView
Dim tcontrol As Windows.Forms.TabControl
For Each thisObj In CrystalViewGrid.Controls
Select Case UCase(thisObj.GetType.Name)
Case "STATUSBAR"
(hide bar)
'CType(thisObj, StatusBar).Visible = False
Case "PAGEVIEW"
MyPageView = CType(thisObj, CrystalDecisions.Windows.Forms.PageView)
tcontrol = CType(MyPageView.Controls(0), TabControl)
With tcontrol
'hide tab
'.ItemSize = New Size(0, 1)
'.SizeMode = TabSizeMode.Fixed
'.Appearance = TabAppearance.Buttons
If .TabPages.Count > 0 Then
With .TabPages(0)
.BackColor = Color.CornflowerBlue
.Text = "mother language"
End With
Else
MessageBox.Show("No tabpage " & _
"drawn yet. Show report before calling this procedure.")
End If
End With
End Select
Next
End Sub

by anubhava.prodata

if you have the font of our mother language so you can do that. You can use cultureinformation in vb.net or vb or c,c++ .

That gives to you best help.

Thanks
Anubhava Prasad Dimri

This discussion is closed to new replies.