ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2017 All rights can not start the application it has already installed in different location<p>I have developed a application. installing in windows server 2008 to share the application. I use the oneclick install the application. Other users can not use the application.</p> <p>when chick the shortcut, the error say, 'you can not start the application, it has already installed in different location'</p> <p>&nbsp;</p> <p>&nbsp;</p>, 21 May 2012 09:33:14 GMTWrite to Event Log using Windows Service in C# and VB.Net<p>how to write eventlog in windows servies and where can i get log file</p> <p>and how to use threading</p>, 04 Aug 2015 02:31:08 GMTWinForms Reports using DevExpress Reporting<p>how to make report in windows form using dev express&nbsp;</p>, 14 Aug 2016 06:00:28 GMTWindows Service Scheduler.cs Code Problem<p>Hi ,</p> <p>&nbsp; &nbsp;This is my Scheduler.cs Code&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp"> private Timer timer1 = null; public Scheduler() { InitializeComponent(); } protected override void OnStart(string[] args) { timer1 = new Timer(); this.timer1.Interval = 30000; this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Tick); this.timer1.Enabled = true; Library.WriteErrorLog(&#34;Service Has Been Started&#34;); } private void timer1_Tick(object sender, ElapsedEventArgs e) { Library.WriteErrorLog(&#34;Timer ticked and some job doing&#34;); sendEmailNotification(); Library.WriteErrorLog(&#34;Timer ticked and some job Completed&#34;); } private bool sendEmailNotification() { bool isSend = false; try { MailMessage message = new MailMessage(); message.To.Add(&#34;;); // if (!string.IsNullOrEmpty(dEmail.CC)) message.CC.Add(&#34;;); //if (!string.IsNullOrEmpty(dEmail.BCC)) // message.Bcc.Add(dEmail.BCC); message.Subject = &#34;Tezting&#34;; message.Body = &#34;Testing&#34;; message.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); smtp.Send(message); isSend = true; } catch (Exception ex) { throw (ex); } return isSend; } protected override void OnStop() { timer1.Enabled = false; Library.WriteErrorLog(&#34;Teh window service has been stopped&#34;); }</pre> <p>Problem : In my log file its always printing like beloow:</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">4/6/2016 12:41:23 PMService Has Been Started 4/6/2016 12:41:53 PMTimer ticked and some job doing 4/6/2016 12:42:23 PMTimer ticked and some job doing 4/6/2016 12:42:53 PMTimer ticked and some job doing 4/6/2016 12:43:23 PMTimer ticked and some job doing 4/6/2016 12:43:53 PMTimer ticked and some job doing 4/6/2016 12:44:23 PMTimer ticked and some job doing 4/6/2016 12:44:53 PMTimer ticked and some job doing 4/6/2016 12:45:23 PMTimer ticked and some job doing 4/6/2016 12:45:53 PMTimer ticked and some job doing</pre> <p>its always printing job is doing...but not completed message&nbsp;</p>, 06 Apr 2016 01:52:43 GMTWindows Forms: Procedure or function has too many arguments specified.<p>im working with this code;</p> <p>&nbsp;</p> <p><strong>&nbsp;i have stored procedure :</strong></p> <p>&nbsp;</p> <pre class="brush: vb">ALTER PROCEDURE [dbo].[Insert_target] @year_covered int, @region int, @province int, @project int, @municipality varchar(50), @subproject varchar(50), @allocation int, @target_new int, @target_restore int, @target_rehab int, @target_fb int, @target_job int, @idd int output AS BEGIN SET NOCOUNT ON; Insert into tbltarget (year_covered, region, province, municipality, project, subproject, allocation, target_new, target_restore, target_rehab, target_fb, target_job)&nbsp;</pre> <pre class="brush: vb"><span style=&#34;font-size: 9pt;&#34;>values (@year_covered,@region,@province,@municipality,</span><span style=&#34;font-size: 9pt;&#34;> @project,@subproject,@allocation,@target_new,@target_restore,@target_rehab,@target_fb,@target_job)</span></pre> <pre class="brush: vb"> set @idd = scope_identity() return @idd END</pre> <pre class="brush: vb">&nbsp;</pre> <pre class="brush: vb">&nbsp;</pre> <p><strong>My Code :&nbsp;</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: vb">For Each lv In ListView1.Items dbCommand.CommandType = CommandType.StoredProcedure dbCommand.CommandText = &#34;Insert_target&#34; dbCommand.Parameters.AddWithValue(&#34;@year_covered&#34;,CInt(ListView1.Items(i).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@region&#34;, CInt(REGION)) dbCommand.Parameters.AddWithValue(&#34;@province&#34;, CInt(PROVINCE)) dbCommand.Parameters.AddWithValue(&#34;@municipality&#34;, ListView1.Items(i).SubItems(6).ToString) dbCommand.Parameters.AddWithValue(&#34;@project&#34;, CInt(PROJECT)) dbCommand.Parameters.AddWithValue(&#34;@subproject&#34;, ListView1.Items(i).SubItems(7).ToString) dbCommand.Parameters.AddWithValue(&#34;@allocation&#34;, CInt(ListView1.Items(i).SubItems(8).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_new&#34;, CInt(ListView1.Items(i).SubItems(9).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_restore&#34;, CInt(ListView1.Items(i).SubItems(10).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_rehab&#34;, CInt(ListView1.Items(i).SubItems(11).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_fb&#34;, CInt(ListView1.Items(i).SubItems(12).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_job&#34;, CInt(ListView1.Items(i).SubItems(13).Text.ToString)) dbCommand.Parameters.Add(&#34;@idd&#34;, SqlDbType.Int).Direction = ParameterDirection.Output dbCommand.Connection = dbConnection Try dbCommand.ExecuteNonQuery() Dim ids As String = dbCommand.Parameters(&#34;@idd&#34;).Value.ToString Catch ex As Exception MessageBox.Show(ex, MessageBoxButtons.OK, MessageBoxIcon.Information) End Try Next</pre> <p>Im hoping someone could help me... &nbsp;</p>, 17 Sep 2013 03:46:17 GMTWindows Forms DataGridView has 3 columns but need to insert data for 5 columns<p>Hi</p> <p>I am making a windows application in which user enters details through gridview there are 3 grid view 2 of entering data correctly but 3 gridview size is small so i cant bind all colums there i have bind only 3 columns there are total 5 columns in total&nbsp; is there any way to enter ther remaining columns data .</p>, 27 Nov 2012 03:24:50 GMTWindows form controlscontainer in asp.Net c#<p>Im new in Windows form application.</p> <p>I want to know that how i can <strong>control the position, size, orientation of the controls/containers</strong> used in windows form, c#.</p> <p>i.e., 1) On <strong>increasing the form size</strong>, <strong>container/control size also increase</strong> (as per defined)</p> <p>2) On <strong>decreasing the form size</strong>, container/control size <strong>retain in its same orientation</strong> (as per defined)</p> <p>please help me in understanding.</p> <p>please reply.</p>, 27 Dec 2013 02:27:05 GMTWindows error when using visual studio<p>Respected sir&nbsp;</p> <p>When ever i run visual studio (any version), windows application works f9 but when i work on web application and run them couple of times (to see the webpage and test coding) my system crashes and i get following error.</p> <p>Blue screen appears with this error</p> <p>&nbsp;irql_not_less_or_equal(tcpip.sys).</p> <p>and system restarts.</p> <p>I am using windows 8.and AVG as antivirus.</p> <p>Sir please help i am not able to work.</p>, 21 Sep 2013 23:32:51 GMTWindows Console program to print 1- 10 digits and some specific text for 4th digit using C#<p>hi all,</p> <p>&nbsp;</p> <p>i have a few douts am trying ascending order program using c#.</p> <p>actually i done this program by the&nbsp; given below output of ascending order</p> <p>output:</p> <p>1 2 3 4 5 6 7 8 9 10</p> <p>my question is :</p> <p>i need to display the message the one who is reach 4 in the order of output which i mentioned above.</p> <p>my message should be like this (" you have been reached 4th position of ascending order")</p> <p>after getting the 4 th postions the code again will start execute the reamining order which means 5th,6th,7th,8th,9th and 10th</p> <p>&nbsp;</p> <p>my expected output is:</p> <p>1</p> <p>2</p> <p>3</p> <p>(" you have been reached 4th position of ascending order")</p> <p>5</p> <p>6</p> <p>7</p> <p>8</p> <p>9</p> <p>10</p> <p>&nbsp;</p> <p>please find out my code below and were i alter my code below. please let me know,advice are very appreciable</p> <p>my code is:</p> <p>&nbsp;</p> <pre class="brush: csharp">using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int i = 0; while(i&lt;10) { i = i + 1; Console.WriteLine(i); Console.ReadLine(); } } } } </pre> <p>&nbsp;</p> <p>thanks in advance..</p>, 04 Jul 2013 05:47:34 GMTWindows Console Application - Access private method in to the main function<p>hi all,</p> <p>Am new in c# console application , i have a few clarification that is ,</p> <p>is there any possibility to access private method in to the main function</p> <p>my code below:</p> <p>&nbsp;</p> <pre class="brush: csharp">using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { } public class c : Program { private void sample() { Console.WriteLine(&#34;hi&#34;); Console.ReadKey(); } } } } </pre> <p>thanks in advance.</p>, 20 Sep 2013 04:02:08 GMTWindows Authentication and Roles<p>Hi Mudassar Khan,</p> <p>I am developing a website which requires windows authentication.I have to configure the webiste in such a way that there is only one user with admin privileges and rest of the user should have only read access.This should be done without the user logging in manually using windows authentication method.The requirement is there should be two roles Admin and User.</p> <p>Also Please provide an Example on Membership and role in website.</p> <p>Please provide suggestions to implement this. Thanks in Advance.</p> <p>&nbsp;</p> <p>&nbsp;</p>, 14 Dec 2013 11:08:52 GMTWindows Application WindowsIdentity.GetCurrent().Name- Get only UserName and not Domain<p>hi</p> <p>I am writing this code</p> <pre class="brush: csharp">LBEmpName.Text = WindowsIdentity.GetCurrent().Name;</pre> <p></p> <p>&nbsp;</p> <p>But i want to display only user name wt should i do.<br /><br /></p>, 09 Oct 2012 08:33:01 GMTWhich control is similar to Frames control in Windows in ASP.Net<p>in visual basic i use what is replacement of frames or how we can use working of frames in</p> <p>in frames we give the caption and group together control.</p>, 05 Dec 2013 03:13:19 GMTWhere is the location of aspnetregiis exe tool<p>What is the basic functionalty of aspnet_regiis command &amp; where it is in the system?</p>, 19 Sep 2013 02:39:33 GMTWant to Learn C# language<p>hi i m new to asp can u suggest&nbsp; me to start learning C# from basic</p> <p>can you help to learn</p>, 11 Jun 2012 08:46:11 GMTWant to find the accuracy of typing sentence in C# windows forms application using time<p><strong><img src="" alt="screen shot" width="367" height="333" /></strong></p> <p>as show in screenshot .. i have to find the errorrate and accuracy of above sentence typed in second textbox .. anyone ? Thankx in advance .</p>, 17 Jul 2017 02:24:11 reporting doesnt add up the decimal point<p>I am using the reporting provided by mircosoft.</p> <p>The Database Access has stored a decimal value. 31.23.</p> <p>in the reporting, it doesn't show 31.00 instead it display 31.23</p> <p>I use the FormatNumber(Fields!Cubic.Value,2). it display 31.00 not 31.23.</p> <p>What is the problem with it ? Is it Mircosoft bug.</p> <p>&nbsp;</p> <p>&nbsp;</p>, 22 Jun 2012 00:02:08 GMTValidate PinCode ZipCode Postal Code in Windows Application<p>Hi All,</p> <p>&nbsp;</p> <p>How to validate pincode in windows application with c# coding? Pincode will not accept below 6 digits and above 6 digits.</p> <p>&nbsp;</p> <p>Thanks and Regards,</p> <p>Murali.K</p>, 28 Dec 2012 04:46:21 GMTuser roles management using c# windows application<p>hi all,</p> <div class="post-text"> <p>i wana work on a windows forms application using c# that several users can work with different roles, for example 3 roles ,that "A role" only to access some parts of the program and cannot see and access it and "B role" can acess to entire of application, but some parts are just right to access and view, "C role" full access to all parts of the Application i have these roles and users in a database (sql server).</p> <p>whats a good way for make this application?</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>thanks in advance...</p> </div>, 05 Mar 2013 04:12:01 GMTUse ASPSnippets SMS API (Site2SMS) in Console Application using C# .Net<p>Will the Site2SMS code work with a console application using COM1? If it can be use send me the code snipped, please.</p> <p>Thanks</p>, 16 Sep 2015 00:18:02 GMTUse and add Windows Forms controls in ASP.Net Web application<p>I have a web application, through the library System.Windows.Form can create a winform window, which can add controls winform.<br />To compile in visual studio it works fine but when IIS publish this window is not displayed.<br />Is there any way to achieve the IIS deploy the winform? or some way to publish this application?<br />Any ideas?</p> <p>Sorry for my bad English<br />Thanks</p>, 06 Jul 2015 13:01:03 GMTUploading Files through Windows Service results in 550 Error<p>&nbsp;i am uploading files on ftp server from my local system through windows services in a folder. Its path is <br /> "" . I am writing ftp Path for this is "<a href="" target="_blank"></a>". when service is running then i am getting this error:The remote server returned an error: (550) File unavailable (e.g., file not found, no access).&nbsp;&nbsp;from my local system through</p> <p>The same code is working good in Web Application and Windows Application. I am uable to upload from my Local system to ftp server through Windows Application and Web Application but failed in Windows Services. Please suggest me what is the reason. I have also taken permission of that Folder from Server administratot.</p> <p>&nbsp;</p>, 13 Oct 2012 05:08:17 GMTUpload PDF file to Google Drive using Windows Service in C# .Net<p>hello everyone</p> <p>I have a question&nbsp;</p> <p>How to upload pdf file on google drive in C#. I am new to do this work</p> <p>Please anyone help me</p> <p>Thanks In Advance</p>, 28 Oct 2015 13:43:09 GMTUpload files from local system to FTP Server using C# in Windows Forms<p>how to upload files on ftp server from local machine using c#.</p> <p>&nbsp;</p>, 09 Oct 2012 23:43:38 GMTUpdate all the row on button click in DataGridView in Windows Form<p>I want to update all the rows that have been edited in the current session.</p> <p>I have list of all rows edited in an array, but now don't know how to proceed.</p>, 29 Aug 2016 02:22:20 GMTUnable to get SelectedValue of ComboBox in Windows Forms Application<p>Hi,</p> <p>I have added the following code in the Combobox load event by binding datas from DB</p> <p>&nbsp; Private Sub ComboBox1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.Load</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim sql As String<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim adapter As New SqlDataAdapter<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim ds As New DataSet<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim connection As SqlConnection = New SqlConnection("Server=pc1207;uid=sa;pwd=welcome3#;database=IRDB")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql = "select * from tblSubmissiontypes"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Command As SqlCommand = New SqlCommand</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connection.Open()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Command = New SqlCommand(sql, connection)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComboBox1.DataSource = Command.ExecuteReader<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComboBox1.DataValueField = "SubmissionTypeID"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComboBox1.DataValueField = "SubmissionTypeName"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComboBox1.DataBind()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connection.Close()</p> <p>&nbsp;&nbsp;&nbsp; End Sub</p> <p><strong>SubmissionTypeID</strong> starts from 1,2,3...&nbsp;&nbsp; and the <strong>submissiontypenam</strong>e for Id 1 is Apple, 2 is Orange, 3 is Grapes for eg.</p> <p>In combobox submissiontypename is displaying.</p> <p>My doubt is when I click Apple, I must get the SubmissiontypeId of Apple i.e .1 in this example.</p> <p>Can any one specify a code for that?</p> <p>&nbsp;</p> <p>Thanks in advance.</p> <p>&nbsp;</p>, 06 Dec 2013 02:47:03 GMTUnable to get full file path in ASP.Net FileUpload control PostedFile.FileName<p>good morning sir,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i want to get full path of client image which i will upload on server .for that i am using fileupload and i am able to take only file name of image .so my question is how to get full path of image for uploading on server . thankyou</p> <p>i am using this code</p> <p>fileupload1.postedfile.filename</p> <p>or</p> <p>fileupload1.filename</p> <p>&nbsp;</p>, 15 Feb 2013 23:08:43 GMTUnable to copy file to Machine on LAN using Share Path in Windows Forms Application<p>I want to create a folder and upload the doc to the server.</p> <p>I put this code at app.config but it show error could not found a part of the path.</p> <p><span style="font-size: 9pt;">Or is there any other ways to upload doc to server?</span></p> <p><span style="font-size: 9pt;"><br /></span></p> <pre class="brush: vb">&lt;configuration&gt; .... &lt;appSettings&gt; &lt;add key=&#34;DocumentVault&#34; value=&#34;\\\C$\SomePath\SomeWhere\Else\&#34;/&gt; &lt;/appSettings&gt; .... &lt;/configuration&gt;</pre> <p>&nbsp;</p>, 17 Jul 2013 04:37:08 GMTThe process cannot access the file because it is being used by another process<p>Hi sir,<br /><br />I am trying to write data in one file after that i am copying that file to my location.<br />but i got one error The process cannot access the file , because it is being used by another process.<br />Please give me sugessions.</p> <pre class="brush: csharp">public void SaveVcatFile() { if (!string.IsNullOrEmpty(ApplicationVariables.SaveFilePath)) { if (string.IsNullOrEmpty(GUID)) { GUID = ApplicationVariables.GuidFolderName; } DirectoryInfo dir = new DirectoryInfo(path + &#34;/&#34; + GUID + &#34;/&#34;); var directories = dir.GetFiles(&#34;*.vcat&#34;, SearchOption.AllDirectories); string filePath = path + &#34;/&#34; + GUID + &#34;/&#34; + directories[0].Name; CreatrZipFileForSave(path + &#34;/&#34; + GUID); Thread.Sleep(6000); File.Copy(filePath, ApplicationVariables.SaveFilePath, true); //here I am getting exception } } private void CreatrZipFileForSave(string filePath) { DirectoryInfo dirInfo = new DirectoryInfo(path + &#34;/&#34; + GUID + &#34;/&#34;); var directories = dirInfo.GetFiles(&#34;*.vcat&#34;, SearchOption.AllDirectories); string VcatFileName = directories[0].Name; string zipfilepath = path + &#34;/&#34; + GUID + &#34;/&#34; + VcatFileName; FileStream fZip = File.Create(zipfilepath); ZipOutputStream zipOStream = new ZipOutputStream(fZip); DirectoryInfo dir = new DirectoryInfo(filePath); var allfiles = dir.GetFiles(&#34;*&#34;, SearchOption.AllDirectories); foreach (FileInfo fi in allfiles) { if (fi.Extension.ToLower() != &#34;.vcat&#34;) { ZipEntry entry = new ZipEntry((fi.Name)); zipOStream.PutNextEntry(entry); FileStream fs = File.OpenRead(fi.FullName); //FileStream fs = File.Open(fi.FullName, FileMode.Open, FileAccess.Read, FileShare.None); try { do { bytesRead = fs.Read(transferBuffer, 0, transferBuffer.Length); zipOStream.Write(transferBuffer, 0, bytesRead); } while (bytesRead &gt; 0); } finally { fs.Close(); } } } zipOStream.SetLevel(6); zipOStream.Finish(); zipOStream.Flush(); zipOStream.Close(); //zipOStream.Flush(); //Thread.Sleep(1000); }</pre> <p>&nbsp;</p>, 15 Jan 2013 23:38:45 GMTThe DisplayGroupTree property cannot be set declaratively<p>&nbsp;</p> <p>In this code below i get an error saying "The 'DisplayGroupTree' property cannot be set declaratively." This happened after i installed the SAP crystal report for visual studio 2015.</p> <p>&nbsp;</p> <pre class="brush: csharp">&lt;CR:CrystalReportViewer ID=&#34;CrvDisplay&#34; runat=&#34;server&#34; AutoDataBind=&#34;true&#34; DisplayGroupTree=&#34;False&#34; ReuseParameterValuesOnRefresh=&#34;True&#34; EnableDatabaseLogonPrompt=&#34;false&#34; EnableParameterPrompt=&#34;false&#34; /&gt;</pre> <p>If i remove DisplayGroupTree="False" then i dont get this error ...below attach screen shot</p> <p><img src="" alt="Error" width="1280" height="768" /></p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">protected void Page_Init(object sender, EventArgs e) { ConfigureCrystalReports(); } private void ConfigureCrystalReports() { ReportDocument cryRpt = new ReportDocument(); TableLogOnInfos crtableLogoninfos = new TableLogOnInfos(); TableLogOnInfo crtableLogoninfo = new TableLogOnInfo(); ConnectionInfo crConnectionInfo = new ConnectionInfo(); Tables CrTables; cryRpt.Load(Server.MapPath(Session[&#34;Reportname&#34;].ToString())); //DB Connection Start string Server1 = ConfigurationManager.AppSettings[&#34;Server&#34;]; string user = ConfigurationManager.AppSettings[&#34;Userid&#34;]; string Password = ConfigurationManager.AppSettings[&#34;Password&#34;]; string DataBase = ConfigurationManager.AppSettings[&#34;DataBase&#34;]; crConnectionInfo.ServerName = Server1; crConnectionInfo.DatabaseName = DataBase; crConnectionInfo.UserID = user; crConnectionInfo.Password = Password; ////Parameter setting Start ParameterDiscreteValue pmtDiscValue1 = new ParameterDiscreteValue(); pmtDiscValue1.Value = Session[&#34;LowerboundDate&#34;]; cryRpt.ParameterFields[&#34;LowerboundDate&#34;].CurrentValues.Add(pmtDiscValue1); ParameterDiscreteValue pmtDiscValue2 = new ParameterDiscreteValue(); pmtDiscValue2.Value = Session[&#34;UpperboundDate&#34;]; cryRpt.ParameterFields[&#34;UpperboundDate&#34;].CurrentValues.Add(pmtDiscValue2); ////Parameter setting End CrTables = cryRpt.Database.Tables; foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables) { crtableLogoninfo = CrTable.LogOnInfo; crtableLogoninfo.ConnectionInfo = crConnectionInfo; CrTable.ApplyLogOnInfo(crtableLogoninfo); } CrvDisplay.SelectionFormula = Session[&#34;selectionformula&#34;].ToString(); CrvDisplay.ReportSource = cryRpt; CrvDisplay.RefreshReport(); }</pre> <p>&nbsp;</p>, 03 Jul 2017 03:51:59 GMT