?
Solved

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

Posted on 2009-04-08
5
Medium Priority
?
800 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 101

Accepted Solution

by:
mlmcc earned 2000 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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
This video teaches users how to migrate an existing Wordpress website to a new domain.
Suggested Courses

752 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