Hi Chandanx, To deploy your Windows applications, you must create a Setup Project and add the necessary components to your project. 1. Creating a Setup Project for Windows Applications In this section, you need to create a Setup Project from the deployment projects available in Visual Studio. You need to have a completed Windows application that uses at least one of the report binding scenarios. See Detailed Listing of All Report Binding Scenarios blog posting. To create a deployment project for Windows applications 1.In Visual Studio, open your Windows application. 2.On the File menu, point to Add Project and then click New Project. 3.In the Add New Project dialog box, select Setup and Deployment Projects in the Project Types pane and select Setup Project in the Templates pane. 2. Adding Components to the Setup Project You must add output files from the Windows application, and merge modules to the Setup Project. To add the Windows application's project output 1.In Solution Explorer, right-click Setup1, point to Add, and then click Project Output.... 2.In the Add Project Output Group dialog box, select Primary output. When Primary output is added to your project, dependencies are added automatically: •ADODB.dll •crystalreports10_net_webservicereporting.msm •dotnetfxredist_x86_enu.msm (excluded from the project) •stdole.dll 3.Right-click the following files and select Exclude: ADODB.dll, crystalreports10_net_webservicereporting.msm, and stdole.dll. To add merge modules to the Setup Project 1. In Solution Explorer, right-click Setup1, point to Add, and then click Merge Module.... 2. In the Add Modules dialog box, select the merge modules that are required for the report binding scenario used in your Windows application. For a description of which merge modules to use for different report binding scenarios, see Crystal Reports Merge Modules blog posting. If you added CrystalReports10_NET_EmbeddedReporting.msm, you must enter a valid Crystal Reports Keycode, as shown in the next step. 3. In Solution Explorer, click CrystalReports10_NET_EmbeddedReporting.msm. In the Properties window, expand MergeModuleProperties and scroll down to the Keycode property. Enter the keycode for Crystal Reports 10. 3. Building and Deploying the Setup Project Building the Setup Project creates an installer that you can deploy to other computers. Note When deploying to other computers, always ensure that the computer already has the .NET Framework installed. To build a
John Ad
Posts
-
Deploying in Visual Studio.net 2003 -
Map file format for gps applicationHi, Refer to the following link: GPS Mapping[^] Map Grabber[^] I hope this would give you better idea to start from.
John Adams ComponentOne LLC. www.componentone.com
-
RememberMe option to remember only username using asp:login?Hi Rams, Refer to the following code that uses a CheckBox and gives the flexibility to the user to save the username:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CheckBox cek = (CheckBox)Login1.FindControl("RememberMe"); if (Request.Cookies["username"] == null Request.Cookies["username"].Value.ToString().Trim() == "") { cek.Checked = false; } else { Login1.UserName = Request.Cookies["username"].Value.ToString(); } } } protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e) { CheckBox cek = (CheckBox)Login1.FindControl("RememberMe"); if (cek.Checked == true) { HttpCookie cookie = new HttpCookie("username"); cookie.Value = Login1.UserName; cookie.Expires = DateTime.Now.AddDays(1);//cookie Expires HttpContext.Current.Response.AppendCookie(cookie); } else { HttpContext.Current.Response.Cookies.Remove("username"); } cek.Checked = false; }
//--- another wayprotected void Page_Load(object sender, EventArgs e) { if (Request.Cookies["MyCookie"] != null) { TextBox pass = (TextBox)Login1.FindControl("Password"); pass.Attributes.Add("value", Request.Cookies["MyCookie"]["password"]); Login1.UserName = Request.Cookies["MyCookie"]["username"]; } } protected void Login1_LoggedIn(object sender, EventArgs e) { HttpCookie cookie1 = new HttpCookie("MyCookie"); cookie1.Values.Add("username", Login1.UserName); cookie1.Values.Add("password", Login1.Password); cookie1.Expires = DateTime.Now.AddDays(1);//cookie Expires HttpContext.Current.Response.AppendCookie(cookie1); }
I hope this would be helpful. For more information on this refer to the following links: Overview of Forms Authentication[^] How to implement simple Form Authentication[^]John Adams ComponentOne LLC. www.componentone.com
-
set as homepageHi Tarun , Refer to the following links: Link #1[^] Link #2[^] I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
Can we use LINQ for MySql ?Hi, Yes, you can. Use LINQ for NHibernate. LINQ for NHibernate[^] If you want to set up a Multi-Tier infrastructure, InterLINQ could probably be a solution for you. InterLINQ [^] Also, see this project: LINQ Provider for MYSQL[^] I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
Setting Desttop icon on status barHi, Try this [^] link. I hope this would resolve the problem.
John Adams ComponentOne LLC. www.componentone.com
-
text box custom behaviour during editionHi Witek, Use events of Keys (KeyDown or KeyPress or may be you may use TextChanged event) and check for the conditions (if the control contains 10 characters or so). Then put the code for execution, may be forcing a line break or something as per the requirements. I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
how to load Pdf file to file test to RichText BoxHi Wasim, Refer to the below mentioned link: Read from a PDF file using C# [^] I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
How to load PDF file Content in Rich Text Box using C#Hi Wasim, Refer to the below mentioned link: Link [^] I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
Removing Title bar IconHi, Refer to the below mentioned links, these may be helpful: Link #1[^] Link #2[^] Hope this helps.
John Adams ComponentOne LLC. www.componentone.com
-
SQL to LINQ -
How do i clear a list boxHi Wamuti, Try using the following line of code if it is a Bound ListBox:
this.listBox1.DataSource = null;
For Unbound ListBox:this.listBox1.Items.Clear()
I hope this would be helpful.John Adams ComponentOne LLC. www.componentone.com
modified on Thursday, September 4, 2008 10:33 AM
-
How to restrict multiple logon to an application?Hi, Add the login userID's to a "loggedin" database table, and check whether the current userID used to login exists in the table. For that to work, however, you need to insure that users are recorded as logged out when they exit the application. You can do that by checking if their sessions have expired, and deleting the userID record from the table. Linking the SessionID to the userID should be enough. I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
How to open ms word form vb.net to a particular bookmark? -
.Net ApplicatonsHi, .Net applications can be run on the mobile devices provided the mobile has Windows Mobile Operating System and a Compact Framework. J2ME is entirely a different technology and you do not need J2ME to run .Net applications. I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
Append to a PDF file -
Open 2 forms and close the firstHi, You may try setting the Visible property to False on loading of the Form. E.g. On Form1_Load, Open Form2 and and set the visible property of Form1 as False. Similarly do it for the remaining Forms. I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com
-
java script timer controlHi Balaji, Use RegisterClientVariable, you may refer to the following code snippet:
At Server Side: ClientScript.RegisterHiddenField("HiddenField", "120");
At Client Side: var temp = document.getElementById("HiddenField");
I hope this would be helpful.John Adams ComponentOne LLC. www.componentone.com
-
Minimize all windowsHi Alexei, Use the following code:
Public Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Int32, ByVal dwExtraInfo As Int32) Public Sub MinimizeAll() keybd_event(&H5B, 0, 0, 0) keybd_event(&H4D, 0, 0, 0) keybd_event(&H5B, 0, &H2, 0) End Sub
The first line declares the API. Next piece of code is a method which we can call anywhere to minimize all windows... I hope this would be helpful.John Adams ComponentOne LLC. www.componentone.com
-
Manage Window from a Process (Minimize, Maximize, Close...)Hi, Set WindowState property of your form to FormWindowState.Maximized or FormWindowState.Minimized for maximizing and minimizing the Form. Refer to this [^] To Show/Hide and Close the form, use use Form.Hide/Close/Show. E.g. to show the current form, use this.Show() I hope this would be helpful.
John Adams ComponentOne LLC. www.componentone.com