Custom tool bar for Crystal Report 10

Source: Internet
Author: User

The Web Application of Crystal Report 10 provides the printing function, which makes us more convenient.
However, although we can use simple settings to control whether individual buttons are displayed or not

However, the tool bar on the Web page is really ugly,

In fact, we can customize it with hands-on techniques, which is very simple.

Right-click the print button and check the attributes of the image. It is originally in the virtual directory.
So let's look for it.

Open IIS and check the location in the properties of the virtual directory,
Not all.

It seems that it cannot be changed, but it can still be found based on experience.
Here

C: / Program Files / Common files / Crystal decisions / 2.5 / Crystalreportviewers10 /  

Check the directory structure. It should be clear.

We strongly recommend that you back up this directory before making changes to prevent incorrect changes!

We put the Web HTMLCodeAnalyze

Well, the style sheet has been found. Let's change the gray one first (crtoolbar)

Change to 6699cc
Let's take a look. How do you feel?

Not to mention the following.
Change Image

You can make a set of beautiful pictures to achieve your own style and coordinate with your entire system.

 

This change is still relatively rigid. You can set the toolbar to not display

Then, place the button on other locations on the page to call the events, such:

Onclick = " Javascript :__ dopostback ('crystalreportviewer1: _ ctl2: _ ctl1 ','') "  

Check the HTML code for the corresponding link.

In this way, you can achieve more customization at will.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.