Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the Crystal Report 10, in Header section i want to display the FromDate,ToDate and Machine Name. Even after changing the format of the date field also am not able to print the dates. Where as Machine name will b printed as per selected in frontend.
Prasad_Kulkarni 8-Mar-12 1:27am    
can u post ur code asif
Asif Iqbal A.Khan 8-Mar-12 1:35am    
<pre lang="vb">
Session("pName1") = "@StartDate"
Session("pName2") = "@EndDate"
Session("pValue1") = txtFrom.Text
Session("pValue1") = Format(CDate(txtFrom.Text), "yyyy-MM-dd HH:mm:ss")
Session("pValue2") = Format(CDate(txtTo.Text), "yyyy-MM-dd HH:mm:ss")

Session("pName3") = "@Machine"
Session("pName4") = "@PlantID"
Session("pName5") = "@CompanyName"
If cmbMachineID.Text = "All" Then Session("pValue3") = "" Else Session("pValue3") = cmbMachineID.Text
If cmbPlantID.Text = "All" Then Session("pValue4") = "" Else Session("pValue4") = cmbPlantID.Text
Session("pValue5") = GetCompanyName.fn_CompanyName()</pre>

Pashad here is my code
Prasad_Kulkarni 8-Mar-12 2:56am    
why don't you try passing parameters to crystal
Asif Iqbal A.Khan 8-Mar-12 2:34am    
Pasad : I got a issue, I have the Adobe 10.1, in this version its not loading, where as in Adobe 9 and later version its getting display. So do you have any Idea about Adobe version 10
Prasad_Kulkarni 8-Mar-12 2:57am    
well i din't understood what you wanna ask, can u please elaborate it..

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