전체 글319 Excel의 셀 범위를 ClipBoard로 Copy 하기 void __fastcall TForm1::Button1Click(TObject *Sender) { Variant xlApp, xlBooks, xlBook, xlSheets, xlSheet, vrange; xlApp = Variant::CreateObject("Excel.Application"); xlApp.OlePropertySet("Visible",true); xlBooks = xlApp.OlePropertyGet("Workbooks"); xlBooks.OleProcedure("Open", "C:\\TEST.xls"); xlBook = xlBooks.OlePropertyGet("Item", 1); xlSheets = xlBook.OlePropertyGet("Worksheets"); xlSheet = .. 2010. 1. 19. Excel의 Text ClipBoard format Excel에서 Text포멧의 경우 1) 라인(Line) 구분 CRLF로 하구요 2) 셀(Cell) 구분은 탭(Tab)으로 합니다. 즉 엑셀에서 Cell을 선택해서 Copy하면 ClipBoard에 Text포멧에는 위와같은 형식으로 들어갑니다. ClipBoard의 Text포멧의 내요을 가져와서 CRLF와 Tab으로 짤라서 Grid에 넣어주면 엑셀 to Grid 가 될것이구 반대로 Grid의 내용을 위와같은 포멧으로 만들어 Clipboard의 Text포멧으로 저장하면 엑셀에서 Ctrl+V할때 붙여넣기가 됩니다. 이것이 님께서 원하시는 Grid to 엑셀이 되겠네요 그럼.. 2010. 1. 19. .NET Compact Framework How-to Topics .NET Compact Framework How-to Topics http://msdn.microsoft.com/en-us/library/ms172482.aspx 2009. 12. 16. file dialog for C# 참고싸이트:http://msdn.microsoft.com/en-us/library/aa446567.aspx 1260962005_SmartPhoneFilesSampleSetup.zip Working with files on Smartphone devices with the .NET Compact Framework Author: Peter Foot Microsoft Embedded MVP In The HandMarch 2004Applies to: Microsoft?? .NET Compact Framework 1.0 Microsoft?? Visual Studio?? .NET 2003 Smartphone 2003DownloadSample Summary:This article will examine some of.. 2009. 12. 16. SmartPhone에서 FolderBrowserDialog을 처리하기 위한 방법(DocumentList Control) WindowsMobileforPocketPC, WindowsMobileforSmartphone.NETCF does not support FolderBrowserDialog. I agree the docs are confusing (and in error) on this point; If it were supported, under Version Information, you would see an entry for .NET Compact Framework (and the version(s) supported there). I've sent a note to our d0cumentation team to get this issue fixed..NETCF does have something similar, .. 2009. 12. 12. package 파일 linker error package와 project를 구분하여 projectgroup를 설정하여 사용할 때 package의 파일을 include 했음에도 external linker error가 발생하면 bpr 파일을 검토 해 보길 바란다. bpr(project file)의 2009. 10. 26. TMaskEdit 사용시 Invalid input value. 메세지 Exception 해결방법 일반적으로 TMaksEdit을 많이 사용하는데 예를 들어 00\-00:00;1과 같이 초기화를 했을 경우 Edit에 Key 입력을 할 때 정확한 데이터가 들어가지 않을 경우 아래와 같은 메세지가 발생한다. "Invalid input value. Use escape key to abandon changes." 잘못된 값으로 ESC 키를 입력해서 해결하라는 것이다. Edit을 선택한 후 ESC키를 누르면 해결이 되지만 유저는 어떻게 처리해야 할지 모를 수도 있다. 이것은 Borland의 Consts_SMaskEditErr Exception이 발생하기 때문이다. 이 문제를 해결하는 아주 간단한 방법은 0으로 초기화를 하지 말고 9로 하면 된다 예를들어 99\-99:99;1 과 같이 Mask를 처리하면 Exce.. 2009. 10. 9. Indy를 이용한 파일 다운로드 void __fastcall TForm1::Button1Click(TObject *Sender) { TFileStream *fileStream; AnsiString filename, URL; URL = Edit1->Text; filename = "c:\\test.txt"; fileStream = new TFileStream(filename, fmCreate); IdHTTP1->Get(URL, fileStream); delete fileStream; } 2009. 9. 16. 환경 변수 인식되는 환경 변수 적용 대상: Windows Vista CSIDL값은 응용 프로그램에서 자주 사용하지만 컴퓨터에 따라 이름이나 위치가 다를 수 있는 폴더를 식별하는 방법을 제공합니다. 예를들어 시스템 폴더가 한 컴퓨터에서는 "C:\Windows"지만 다른 컴퓨터에서는 "C:\Winnt"일 수 있습니다. USMT .xml 파일에서 별표(*) 와일드카드 문자를 사용할 수 있습니다. 그러나 Config.xml 파일에서는 와일드카드 문자를 사용할 수 없으므로 물음표를 와일드카드 문자로 사용할 수 없습니다. 이 항목의 내용 운영 체제와 각 사용자의 컨텍스트에서 처리되는 변수 사용자 컨텍스트에서만 인식되는 변수 운영 체제와 각 사용자의 컨텍스트에서 처리되는 변수 이러한 변수는 .xml 파일의 섹션 내에서 cont.. 2009. 9. 10. 이전 1 ··· 28 29 30 31 32 33 34 ··· 36 다음