Skills in Crystal Reports

Source: Internet
Author: User
Document directory
  • Custom crystal report appearance
Custom crystal report appearance

1. Appearance:

Set properties of the crystal report Viewer:

Displaygrouptree Boolean value. Obtain or set whether the tree view is visible or hidden.

Boolean value of displaypage. Obtain or set whether the toolbar is visible or hidden.

Boolean value of displaytoolbar. Obtain or set whether the Go to page button on the toolbar is visible or hidden.

Pagezoomfactor int32. Obtains or sets the scaling factor of a report.

Separatepages Boolean value. Obtain or set whether the report page is separated or connected.

Pagetotreeratio float64. Set the size ratio between the group tree and the report view.

--------------------------------------

2. buttons on the control toolbar:

Set properties of the crystal report Viewer:

Hasgotopagebutton Boolean value. Gets or sets the visibility of the button to go to the page.

Haslevelupbutton Boolean value. Obtain or set whether the go to previous page button on the toolbar is visible or hidden.

Haspagenavigationbuttons Boolean value. Obtain or set whether the page navigation buttons on the toolbar are visible or hidden.

Boolean value of hasrefreshbutton. Obtain or set whether the refresh button on the toolbar is visible or hidden.

Boolean value of hassearchbutton. Obtain or set whether the search button on the toolbar is visible or hidden.

Haszoomfactorlist Boolean value. Gets or sets whether the zoom factor list on the toolbar is visible or hidden.

--------------------------------------

3. Web page layout:

In "design view", modify the width and height attributes.

Switch to the "HTML View" of the form and modify the style attribute.

<CR: crystalreportviewer id = "crystalreportviewer1" style = "Z-INDEX: 101; left: 8px; position: absolute; top: 8px "runat =" server "width =" 350px "Height =" 50px "enabledrilldown =" false "displaygrouptree =" false "> </Cr: crystalreportviewer>

--------------------------------------

4. company logo in addition to Crystal Reports

Replace or delete the logo file of crystal ......

(1) Use the Crystal Report provided by vs. net.

C: \ Program Files \ Microsoft Visual Studio. NET \ Crystal Reports \ viewers \ images \ Toolbar \ logo.gif

(2) Use the Crystal Report 9.2

C: \ Program Files \ common files \ crystal decisions \ 2.0 \ crystalreportviewers \ images \ Toolbar \ crlogo.gif

--------------------------------------

5. replace various icons and images in the Crystal Report

(1) Use the Crystal Report provided by vs. net.

C: \ Program Files \ Microsoft Visual Studio. NET \ Crystal Reports \ viewers \ images

(2) Use the Crystal Report 9.2

C: \ Program Files \ common files \ crystal decisions \ 2.0 \ crystalreportviewers \ Images

How to set the background color of the Crystal Report

When I saw some netizens ask this question, I felt a little confused about the answer. So I wrote this article and hoped it would be helpful to some netizens!

The procedure is as follows:
1. Right-click the title axis of the detail section, select "format section", and open "section expert ";


2. Click the "color" tab and select the "background color" check box ";
3. Here, we use the report field "brand" as the color setting condition to bring up the Default background color first. Select "Custom" from the drop-down list
In the "color" dialog box, specify the color you want. I use RGB (200,171,162) and click "add
Click "custom color", select the custom color, and then click "OK;

4. Press the formula button and write the following Conditional Formatting formula (basic syntax) in the format editor dialog box ):
Select case ({myaccess. Brand })
Case "Spirit"
Formula = RGB (1, 244,126,254)
Case "Quattro"
Formula = RGB (1, 142,142,255)
Case "JVC"
Formula = crlime
Case else
Formula = defaultattribute
End select


5. Save the formula and close the format editor dialog box;
6. Click "OK" in "expert section.
7. The final effect is as follows:

Note: The above is for the message section. You can set the background color for other sections. This section is not all listed here!
To save layout, please view images in my album

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.