Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default biff 2 clipboard

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clipboard empty but still get waring that clipboard is full Steve Excel Discussion (Misc queries) 0 June 17th 08 09:05 PM
one more question BIFF gotta know Excel Worksheet Functions 1 December 22nd 06 07:30 PM
Biff I need your help!! Lorne Oliver Excel Worksheet Functions 2 July 6th 06 12:52 AM
Hello Biff are u here zmr325 Excel Discussion (Misc queries) 0 November 29th 05 08:06 AM
To Biff & Niek Issam LAdki New Users to Excel 1 February 27th 05 10:18 PM


All times are GMT +1. The time now is 07:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"