[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-04-08
5
Medium Priority
?
817 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

831 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