on 01-01-2009 11:46 AM
Hi
I need help to remove Crystal logo from CrystalReportViewer in window application. I am using following technologies
Visual Studio 2005 Window application
Crystal Report 11.5 SP2
Thanks
Nadeem
Hi,
The Viewer related features are available in the location C:\Program Files\Business Objects\Common\4.0\crystalreportviewers115 folder. The logo can be found under js\crviewer\images folder that you are looking for.
However, do remember that making changes to these files may not be a good idea.
Thanks,
AG.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nadeem,
I found this on [http://aspalliance.com/1744_Lessons_Learned_Sorting_out_Crystal_Reports_2008_Versioning_Service_Packs_and_Deployment.all|http://aspalliance.com/1744_Lessons_Learned_Sorting_out_Crystal_Reports_2008_Versioning_Service_Packs_and_Deployment.all|http://aspalliance.com/1744_Lessons_Learned_Sorting_out_Crystal_Reports_2008_Versioning_Service_Packs_and_Deployment.all]
However, there is a completely undocumented property of the CrystalReportViewer control called ShowLogo. It is not surfaced in the Properties page. It does not show up in Intellisense. It does not show up in the Object Browser. I could not even find it using Reflector. But you can code it in and it will compile and it does, indeed, do the trick as you can see in Figure 4.
CrystalReportViewer1.ShowLogo = False
This works with Crystal report 2008. Try it with Crystal Report 11.5 SP2 too
I'm using CR2008 SP0 in VS2008 (also Runtimes are SP0).
I wnated an own logo shown instead of Business Objects and I replace the logo like this:
ToolStrip d = (ToolStrip)crystalReportViewer1.Controls[4];
d.Items[d.Items.Count - 1].BackgroundImage = CR_ReportViewer.Properties.Resources.mylogo ;
Here
CR_ReportViewer.Properties.Resources.mylogo
is a BMP-resource I added into the resources of the project named CR_ReportViewer.
In my configuration (as said above CR2008SP0 in VS2008) the following worked for hiding the logo at all (although undocumented):
this.crystalReportViewer1.ShowLogo = false;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fritz
Thank you very much for your help, my problem has been solved by using your provided lines of code, I would like to thank Deepu as well for making some corrections.
I will like to thanks all of the people for their precious time and words.
Regards
Nadeem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nadeem,
I found the following code (Note No [1219600|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313339333633303330%7D.do] ) .I only changed argument for controls property ( replaced 1 by 3, it didn't work for 1).Works fine at my end (running VS 2005 Windows Application, CR XIR2 SP2).
C#
ToolStrip d = (ToolStrip)crystalReportViewer1.Controls[3];
d.Items[d.Items.Count - 1].Visible = false;
VB.NET
Dim d As ToolStrip = CType(CrystalReportViewer1.Controls(3), ToolStrip)
d.Items(d.Items.Count - 1).Visible = False
let us know if it helps.
Regards,
Deepu Divakaran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.