Solved

Crystal Report text object change a property when a CSS is defined

Posted on 2009-04-08
5
779 Views
Last Modified: 2012-05-06
I use Visual Studio 2008 and crystal report for a C# web application.

All text objects in my report have the same CSS. For some fields, I want, for example, to change the text color or  to change the horizontal alignment but doesn't work. When I remove the CSS, it's work.

Do you have a tips or a idea for this?

Thanks
0
Comment
Question by:AngieWill
  • 2
  • 2
5 Comments
 
LVL 11

Expert Comment

by:level9wizard
ID: 24096421
To set a color using CSS, here's an example:
color: Red;

To set vertical alignment, you can do, for example:
line-height: 100px;
0
 
LVL 11

Expert Comment

by:level9wizard
ID: 24096425
And horizontal alignment:
margin: 0 auto; (centered)
0
 

Author Comment

by:AngieWill
ID: 24096468
Yes of course thanks.
The problem is I only want to change directly in text object in rpt file a property and doesn't work when a CSS is defined for the text object.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 24100986
I haven't explored the process of tying a CSS to a report but I would suspect that with a CSS tied to the report, it overrides any Crystal formatting since that is the main reason for a CSS is to standardize formatting of objects and eliminate the need to format each object indiviually.

mlmcc

0
 

Author Closing Comment

by:AngieWill
ID: 31567933
I think that the best way is to define first the common settings of the report in window 'Report Options'.
Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now