Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I created a Windows application including crystal report. The report shows Date, ID of employee, presence on the date(present/absent), reason.
If the employee is absent the reason has some text specifying reason else empty.
Drawing line and box in report, results in line which is drawn somewhere between the reason text where the number of characters are different at runtime. Sometimes between , sometimes leaving spaces.
May be using CSS would resolve but I have no idea using CSS in crystal report for Windows application. It may also do if the objective can be achieved without using CSS because I do not require change in colors etc. I only need the data in table format.
How would I be able to resolve this problem?
Posted

Yeah, I also faced the problem a long time back. Follow the following steps:

1. Open the Report in Design Mode
2. Open Toolbox
3. Take a table control
4. Make sure that you have not put the table on Header/Footer part of the Designer

5. Put the Controls/Labels accordingly
6. Populate properly
7. Use Drag and Drop feature of the VS, Size Header/Footer properly. Mean to say, the main window should be as small as possible
 
Share this answer
 
Comments
Vikram_ 10-Jul-11 8:31am    
But Toolbox includes only Text Object,Line Object and Box Object. I can't see any table control in toolbox of Visual Studio 2005 IDE
Mr.Sourav.Maitra 11-Jul-11 3:32am    
Which Edition of VS 2005 you are using? Box object can be used also, but that in turn will be tedious.
I am using Professional Edition of VS 2005.
Using box object makes a fixed or static box not dynamic as I already quoted in my question you may refer that again. As a result change in number of characters may result in spaces in the box or box border drawn somewhere between or on those characters rather entire text being in the box.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900