4,588 Topics
| |
Recently, I meet a problem that I need to insert header and footer in excel with C#, I use the following code: Worksheet sheet = workbook.Worksheets[0]; sheet.PageSetup.FullHeaderString = "E-iceblue"; sheet.PageSetup.IsPrintHeadings = true; sheet.Visibility = WorksheetVisibility.Visible; sheet.PageSetup.LeftFooter = "everlasting"; But when I launch it, the header and footer do not appear … | |
Hello, I'm needing help with a query I've been working on for a week now, I've tried using IEnumerable and tried using the query like a var, to no avail. Basically I'm just trying to query a range using LINQ for example, I need to find the range of invoices … | |
Hello, I am trying to write a simple program which should read the first line from the file s1, and display it. When I run it , I get the message cannot implicitly convert 'System.IO.Streamreader 'to 's1.Program' which happens for the line Program re = new StreamReader("s1.txt"); using System; using … | |
C# Query : When I login to my software I select the desired username using combobox. After I login, I want to see the username text in the main window on the toolstrip. I tried get and set method but something is going wrong. Can you please help me out? … | |
Hi,i´m having a terrible time to discover how can i create masks to some field. Like for example,i would like that when someone fills a phone field,would appear (00)xxxx-xxxx, and such. I already tried to make a javascript function,but it seems that it doesnt work with EXT,because the field is … | |
Hi everyone. I have a UI Design that I got coded by my software developer and when I change the color of an image and then run under "debug" The image stretches even though I never changed any dimentions or anything. All I did was change the color.Any ideas what … | |
Hi all, I have a problem with manipulating gridview with a textbox outside gridview but in the same form. My requirement is I have a gridview where cell[1] is quantity, cell[2] is a boundfield which shows the rate and cell[3] is discount and i have a textbox control outside gridview … | |
I've an application build with C# and WPF, that is being developed by 3 developers, including me. On a certain stage of the application, an error came up that we can't determine how it happened and how to solve it, so we ask for your help. Although everything works well … | |
Hello friends, I am working an a section of application which needs to Parse CSV Logs generated by PostgreSql server. - The Logs are stored C:\Program Files\PostgreSQL\9.0\data\pg_log - The Server version in 9.0.4 - The application is developed in C Sharp * The basic utility after Parse the Log is … | |
I would like to find out what this code snippet does. i know it involves extraction from a webpage format gb2312 but can ano\yone explain line by line, i appreciate the help... :) Code blocks are created by indenting at least 4 spaces ... and can span multiple lines if … | |
hi guys! i'm trying to build a wireless sensor network which should be able to detect and track bluetooth devices inside a room,thus it should have an interface(map layout) showing the tracking!!this will involve the use of triangulation methods in finding the target location. i would just like to ask … | |
Hi guys, I have a problem I need to make an appointment with some bold text in it. I also want to set a category for it (color)... I heared that it is possible to implict RTF into appointment.body - but I dunno how to do that... My code is: … | |
I am trying to learn how to make a mobile phone communicate with a server and a database. So far, I have made a web-service on my PC using this tutorial: http://msdn.microsoft.com/en-us/library/ms733069.aspx The above tutorial makes a sortof WCF service. What would be the best Database system for me? Simplicity … | |
public Card deal_one_card(List<Card> cards) { if (cards.Count() == 0) { return null; } return cards.RemoveAt(0); } I am getting an error when I run this function "Cannot implicitly convert type 'void' to 'Poker.Card' Can somebody help with me this? Thanks in advance. | |
Hello everybody i have created a application in application i have added a form1 and i have used two buttons, when i click(Triggered) button1 it will load form2 and when i click(triggered) button2 it will load form3 but my problem is this form2 and form3 should load when button1 and … | |
I have an xml like [CODE] <?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:docs='http://schemas.google.com/docs/2007' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"C0EARXY8eit7ImA9WhVREE0."'> <id>https://docs.google.com/feeds/default/private/full</id> <updated>2012-03-17T16:27:24.872Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/docs/2007#item' label='item'/> <title>Available Documents - </title> <link rel='alternate' type='text/html' href='https://docs.google.com'/> <link rel='http://schemas.google.com/g/2005#resumable-create-media' type='application/atom+xml' href='https://docs.google.com/feeds/upload/create-session/default/private/full'/> <link rel='http://schemas.google.com/docs/2007#alt-post' type='application/atom+xml' href='https://docs.google.com/feeds/upload/file/default/private/full'/> <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://docs.google.com/feeds/default/private/full'/> <link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='https://docs.google.com/feeds/default/private/full'/> <link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='https://docs.google.com/feeds/default/private/full/batch'/> … | |
i wanna read from a web service to a text block ... i defined a web service in the main page then i declared object of the main page into info page to call values which it come from web service but this code keep the text block empty that … | |
How to convert automatically system genrated string to int in c# code. | |
Hi, I just want to know which is the best way to transfer files between clients and server. My server is accessed from client through internet. I found some results after googled as using tcp/udp/ftp... So , i just want to know which one is best and why ? . … | |
I wrote a recursive function using System.IO stuff in order to copy a directory and all its contents to another location. I'm using Windows 7 and Visual C# 2010. It looked like a simple task but it really isn't. First, when i tried to run the code i got a … | |
Hi, I'm new in asp and c# and I've being looking everywhere on how to dynamically create multiple html tables based on a user input: e.g.: user enter 3 in a text box and right below 3 tables are created with other text boxes for more user input. Thanks | |
how would i go about putting each number button 0-9 into one piece of code and then call it in the click_event | |
I have a project in visual studio 2010 and i use c# and asp.I want to use a part of code that uses dll files.I don't know to import the dll to my project. I do know for example,how to use css and javascript: But i think for dll is … | |
Hey! I have some trouble with drawing on picturebox in visual studio c#. I want do draw a line between 2 points that i get either with mouse clicks or with inserting coordinates manualy. So i have created 2 events, picterbox paint event where i made a pen and graphics, … | |
I am creating a web page with dynamic controls and want to add events to the controls. Specifically, I have labels and checkboxes on my web page and want to add an event to review the status of the checkboxes. In the event, I want to check to see if … | |
I have been working on this all day can someone please tell me what I am doing wrong. using System; public class ArrayManagement { public static void Main(string[] args) { int[] myArray; myArray = new int[7]; myArray = fillArray(); int sum, avg; arrayMath(myArray, out sum, out avg); displayArray(myArray); } public … | |
to anyone I am currently writing this C# program for a C# class I am taking and I have the correct formula which is Future Value=PresentValue*(1=Rate)Year the issue I am having is there is an error message for the futureValue= presentValue, the presentValue has the message Use of unassigned local … | |
Hi , Anybody please help me in this ..it is an urgent for me. Actually i have a DataGridview in my window which should be with one fixed row and 2 fixed columns. Fixedrow is done in Datagridview with the headercolumn property. Now i need to add 2 columns as … | |
I am writing a code and I am somewhat new and this is kinda throwing me off. Here is my code: [CODE]private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { textBox4.Visible = true; textBox5.Visible = true; } else { textBox4.Visible = false; textBox5.Visible = false; } } } }[/CODE] … | |
String sQueryShow = "SELECT SUM(pf5_showplaylists.runningtime) FROM pf5_showplaylists WHERE pf5_showplaylists.showID = " + ShowID + ";"; HOW CAN I GET THE RESULT OF THIS SQL STATEMENT INTO A VARIABLE SO COULD DISPLAY THE OUTPUT IN A MESSAGE BOX? (URGENT, REALLY URGENT..) |
The End.