Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I am looking for an example(MFC or C++) of a BIFF format that i can put in the Clipboard. I've tried to modify "Saving Excel 2.1 Workbook" by Andrei Litvin(codeproject.com) without success for now. here is the code: /////////////////////////////////////////////// COleDataSource* pSource = new COleDataSource(); CSharedFile sf(GMEM_MOVEABLE | GMEM_DDESHARE | GMEM_ZEROINIT); CString s1 = "string 1"; CString s2 = "string 2"; CMiniExcel miniexcel; miniexcel(0,0) = s1; miniexcel(1,0) = s2; miniexcel.Write(&sf); int i = sf.GetLength(); HGLOBAL hMem = sf.Detach(); UINT format = ::RegisterClipboardFormat("BIFF"); pSource-CacheGlobalData(format,hMem); pSource-SetClipboard(); //////////////////////////////////// Any ideas and information about BIFF are welcome. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clipboard empty but still get waring that clipboard is full | Excel Discussion (Misc queries) | |||
one more question BIFF | Excel Worksheet Functions | |||
Biff I need your help!! | Excel Worksheet Functions | |||
Hello Biff are u here | Excel Discussion (Misc queries) | |||
To Biff & Niek | New Users to Excel |