Solved

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

Posted on 2016-11-10
4
24 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 24

Expert Comment

by:Pawan Kumar
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 47
Linq Help 1 35
Word Directory is not in the drop down list 4 24
User Authentication using Digital Certificate 2 16
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

16 Experts available now in Live!

Get 1:1 Help Now