Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove logo from report viewer. 1

Status
Not open for further replies.

kwalters135

Programmer
Dec 29, 2005
48
US
Hello. I am trying to remove the business objects logo that appears in the top right corner of the report viewer. I have searched my entire computer and deleted all logo files that resemble and match the one that is displayed in the viewer. I thought that would fix it, but somehow it is still showing up. I guess it is embedded inside a file. Anyone know how to prevent the logo from being displayed in the report viewer?

I am using CR XI R2 running on Win XP SP2.
 
They probably wrote it to be impossible to remove. It is their software, after all.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Hi,

you can hide the logo or even change it, here is the snippet below (C#):

// hide the business objects logo
ToolStrip d = (ToolStrip)this._reportViewer.Controls[3];
d.Items[d.Items.Count - 1].Visible = false;
// d.Items[d.Items.Count - 1].Image = image; // change the image.

Hope this helps
 
That worked.
Thank you!!

Here is the vb code that I modeled after your C# snippet.

Dim x As Integer
Dim ct As ToolStrip


myCrystalReportViewer.Cursor = Cursors.WaitCursor
' Hide the crystal logo that normally displays in the top right corner of the viewer.
For x = 0 To myCrystalReportViewer.Controls.Count - 1
If TypeOf (myCrystalReportViewer.Controls(x)) Is ToolStrip Then
ct = myCrystalReportViewer.Controls(x)
Exit For
End If
Next
ct.Items(ct.Items.Count - 1).Visible = False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top