How to Change Crystal Report Formatting for Different Customers - Part 1
page 5 of 7
by Eric Landes
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 60850/ 119

Setting different styles for your application

So now that we know how to set your reports style, let us see how we can deploy our application for different customers. Our custom web application is geared to be sold to for Outdoors retail shops. Our outdoors retail application named AdventureWorks allows the customer to use our hosted solution, where they do not need their own server, or they can install the application on their own web server.

We will assume that customer A has his own web server. When he deploys the web application, the installation copies the standard CSS file (named OurStyles.css) and reports. Once installed, Customer A's IT staff or anyone familiar with CSS can modify the OurStyles.css file to utilize their own look and feel. The style sheet should include comments to let the developer know what section that class name is used for. To change the Detail section, simply add the font, etc. to the class name. 

A hosted solution of our AdventureWorks application is deployed much the same way. Each website is set up independent of others, so the ourstyles.css file can be placed in your hosted FTP site. To modify it, the customer simply downloads the file, modifies it locally, and then uploads the file back to their server. We can also try to integrate something like the User Interface for modifying CSS files from DotNetNuke, to make modification easier, but that is beyond the scope of this article. 

Listing 3

/* body is used in the Detail Section */
      font-family: 'Times New Roman' , Times, serif;
      font-size: medium;
      color: #000080;
      font-weight: bold;
      text-decoration: underline;
/* h1 is used in the Page Header Section */
      font-family: 'Times New Roman';
      font-size: x-large;
      font-weight: bold;
      color: #008000;
      background-color: #C0C0C0;
/*h2 is used for the Group Header Section */
      font-family: Arial;
      font-size: x-large;
      font-weight: bolder;
      color: #00FF00;
      background-color: #000080;

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2018  |  Page Processed at 2018-03-21 10:09:34 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search