Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
how to get textbox value from front end to crystal report
sameer gadade
Jul 20 2012 3:01 AM
6.4k
Reply
hi
i have the textboxes say txtfromdate and txttodate these to textboxes are on front end forms(no db connection) and
i want to get these text box values as it is on crystal reports header section how to get it please help
i have written code:
i created the formula
repexamdesc.DataDefinition.FormulaFields["fromdate"].Text = "" + txtfromdate.Text + "";
repexamdesc.DataDefinition.FormulaFields["todate"].Text = "" + txttodate.Text + "";
where
repexamdesc=reportobject
fromdate=formula field
todate=formula field
this gives me answer in int fomat i.e if my fromdate textbox value is 6/1/2012 then
it shows output as = 6
it dosent take '/' since my formula fields(fromdate,todate) have data type int 16
how to its value to varchar
please help
any other solution will be greatly appreciated.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Client Side and Server Side Validations
insert values in gridview as a hyperlink