본문 바로가기

Language/C#

msChart Y축 2개 쓰기 / double Y Asis I have been researching ways of drawing charts in c#. I have a specific requirement of drawing a chart with a y axis and x axis and a seconday y axis.I have tried using excel Interop but have not found a solution.I have started working on MSChart component but not reached anything yet the data i am working with isindex lines branches 1 20 5 2 30 8 3 34 6i want to plot the indexies on the x-axis .. 더보기
쉬프트 연산자(shift operator)를 사용하는 방법 쉬프트 연산자(shift operator)는 변수 또는 식의 비트들을 왼쪽 또는 오른쪽으로 이동시키는 연산자입니다. 종류는 다음과 같습니다. 쉬프트 연산자의 종류 쉬프트연산자형식의미expr1이 부호없는 수일 때expr1이 부호있는 수일 때> expr2expr1의 비트들을 expr2의 값만큼 오른쪽으로 이동시킵니다. 맨 오른쪽 비트를 벗어나는 비트값들은 버려집니다. 이동 후 빈 자리의 비트들은 0으로 채워집니다.비트들이 오른쪽으로 이동하는 것은 동일합니다. 그러나 이동 후 빈 자리들은 부호 비트의 값으로 채워집니다. 예를 들어 부호 비트가 1이면, 빈 자리들은 1로 채워집니다. 쉬프트 연산자의 오른쪽 피연산자는 정수형한가지 주의할 점은 쉬프트 연산자의 오른쪽 피연산자(위 표에서는 expr2가 이에 해당)는.. 더보기
파일이나 어셈블리 'Oracle.DataAccess' 또는 여기에 종속되어 있는 파일이나 어셈블리 중 하나를 로드할 수 없습니다. 아래의 경로에서 내에 add 시켜 주면 된다. C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\Machine.config 64비트의 경우 .. iis 설정에서 응용프로그램 풀에 고급설정에 들어가셔서 "32Bit 응용프로그램 사용" 여부를 True 더보기
ibatis의 탄생 철학 출처: http://blog.naver.com/2000yujin/130154067545 : iBATIS 역사: iBATIS 이해: 데이터베이스 종류 iBATIS는 관계형 데이터베이스와 SQL의 가치를 인정하고 산업 전반에 걸친 SQL에 대한 투자를 그대로 이어가겠다는 생각을 기반으로 하고 있다. iBATIS는 SQL로 더 쉽게 작업할 수 있도록 SQL 사용을 기꺼이 받아들였고, 현대적인 객체 지향 소프트웨어와의 통합을 더 쉽게 만들어 주는 퍼시스턴스 계층(persistence layer) 프레임워크로 자리매김 했다. 1.1 복합적인 솔루션 : 최고 중의 최고들로 구성하기 현대 세계에서는 복합적인 솔루션을 어디서든 찾아볼 수 있다. 겉으로 보기엔 서로 반대되는 두 생각을 받아들여 중간에서 그것들을 합치면 .. 더보기
IBatisNet.Common.Exceptions.ConfigurationException inner Exception문구 - The error occurred while loading SqlMap.- Check the parameter mapping typeHandler attribute '' (must be a ITypeHandlerCallback implementation).- The error occurred in . - Check the GetCpMetadataDetailView. IBatisNet.Common.Exceptions.ConfigurationException 에러 대처법 이건 쿼리 나 코드 문제가 아니다 아.. 쿼리 일 수도 있나? 여튼. ibatis 문법 문제다. parameterClass에 바인딩 되는 필드 명(오타 포함) 문제일 수도 있고 형식 문제일 수도 있다.거의.. 더보기
[C#] 파일 읽기와 쓰기 처리 using System.IO; using System.Xml; string strSaveFilePath = "C:\\test.txt"; StreamReader SRead = new StreamReader(strSaveFilePath, System.Text.Encoding.UTF8); string strFileLine = string.Empty; while((strFileLine = SRead.ReadLine()) != null) { Console.WriteLine(strFileLine); } SRead.Close(); string strTest = "testtest"; StreamWriter SWrite = new StreamWriter(strSaveFilePath,false,System.Text.Enc.. 더보기
DateTime.ToString 메서드 (String) 출처: msdn using System; public class DateToStringExample { public static void Main() { DateTime dateValue = new DateTime(2008, 6, 15, 21, 15, 07); // Create an array of standard format strings. string[] standardFmts = {"d", "D", "f", "F", "g", "G", "m", "o", "R", "s", "t", "T", "u", "U", "y"}; // Output date and time using each standard format string. foreach (string standardFmt in standardFmts) .. 더보기
Decimal.ToString 메서드 (String) 출처: MSDNdecimal value = 16325.62m; string specifier; // Use standard numeric format specifiers. specifier = "G"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); // Displays: G: 16325.62 specifier = "C"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); // Displays: C: $16,325.62 specifier = "E04"; Console.WriteLine("{0}: {1}", specifier, value.ToString(spe.. 더보기
C# Get Web Source / 웹사이트 소스 가져오기 using System.Net; //... using (WebClient client = new WebClient ()) // WebClient class inherits IDisposable { client.DownloadFile("http://yoursite.com/page.html", @"C:\localfile.html"); // Or you can get the file content without saving it: string htmlCode = client.DownloadString("http://yoursite.com/page.html"); //... } 더보기
XML 특수문자 안되는 특수문자: !@#$%^+\|:;{}[]되는 특수문자: *_/변환시킬수 있는 특수문자: " , &, ' , 더보기