Solved

How to add a word to a row in crystal Report in C#

Posted on 2016-11-10
4
16 Views
Last Modified: 2016-11-15
Hello experts, I am doing an application in which I have to print some data using crystal report,
for the data I am using MySql.
In my database, I have a field which shows numbers of months so it is something like this:
User       Prevision

Test         3 MONTHS

So, in my database my column prevision shows the number of months and what I need is to add MONTHS to the field in crystal report... PS: I don't want to add "MONTHS" in the database but only show it in the crystal report. I can do it in datagrid easily but in crystal report I didn't make it. Thank you.
0
Comment
Question by:SniperCode Sheva
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Pawan Kumar Khowal
ID: 41881931
open a new project C# - > Right click on the project -> Add new item -> reporting - > Crystal Report -- >report type - > Using report wizard - > standard report -> Oledb connection --> <<oledb driver for SQL SERVER>>  provide connection details- > select table -> click ok..
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load(path of the crystal report..\\CrystalReport1.rpt");
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();

Open in new window


Set by step approach - http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm
Hope it helps.
0
 

Accepted Solution

by:
SniperCode Sheva earned 0 total points
ID: 41881938
It is not the answer that I wanted thank you I figured out the solution  
concat(Prevision, ' ', 'MONTHS')

Open in new window

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 41881983
You can do it in a Crystal formula with

CStr({YourField},0) & ' Months'

mlmcc
0
 

Author Closing Comment

by:SniperCode Sheva
ID: 41887627
The other solutions were not good
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

20 Experts available now in Live!

Get 1:1 Help Now