Click here to Skip to main content
15,441,280 members
Home / Discussions / COM
   

COM

 
AnswerRe: What type of permissions are needed to resolve Acccess denied for GetDsOfNames to registry entry HKCR\Typelib Pin
Richard MacCutchan7-Jan-13 22:20
mveRichard MacCutchan7-Jan-13 22:20 
QuestionCreating .OCX file hangs Pin
ForNow1-Jan-13 17:44
MemberForNow1-Jan-13 17:44 
QuestionGetIDsOfNames returning -1 Pin
ForNow27-Dec-12 12:28
MemberForNow27-Dec-12 12:28 
AnswerRe: GetIDsOfNames returning -1 Pin
Richard MacCutchan27-Dec-12 21:48
mveRichard MacCutchan27-Dec-12 21:48 
QuestionMixing native OLE with MFC interface/wrappers Pin
ForNow26-Dec-12 15:30
MemberForNow26-Dec-12 15:30 
AnswerRe: Mixing native OLE with MFC interface/wrappers Pin
DriveByCoder24-Mar-15 7:41
professionalDriveByCoder24-Mar-15 7:41 
Question_WorkSheet::Paste usage Pin
ForNow19-Dec-12 13:01
MemberForNow19-Dec-12 13:01 
AnswerRe: _WorkSheet::Paste usage Pin
Jochen Arndt19-Dec-12 21:45
professionalJochen Arndt19-Dec-12 21:45 
I'm not quite sure if the Worksheet.Paste method does what you want. It will copy text from the clipboard to the specified (or current) selection (see Worksheet.Paste Method[^]). Setting the second parameter to TRUE will not copy the text but place a link. So if you have copied the text from the file to the clipboard, you may use this function but should pass FALSE as second parameter (or COleVariant((long)DISP_E_PARAMNOTFOUND, VT_ERROR) as optional value which uses the default).

However, the first (also optional parameter) is a range object. Just declare the object, assign the return value of GetRange() and pass it to Paste():
C++
Range objRange = objSheet.GetRange(COleVariant(TEXT("A1")),COleVariant(TEXT("M34")));
objSheet.Paste(objRange, COleVariant((short)FALSE));

GeneralRe: _WorkSheet::Paste usage Pin
ForNow20-Dec-12 5:21
MemberForNow20-Dec-12 5:21 
GeneralRe: _WorkSheet::Paste usage Pin
Jochen Arndt20-Dec-12 21:04
professionalJochen Arndt20-Dec-12 21:04 
QuestionMSDN documentation for MFC OLE wrapper method/prperties Pin
ForNow17-Dec-12 13:10
MemberForNow17-Dec-12 13:10 
AnswerRe: MSDN documentation for MFC OLE wrapper method/prperties Pin
Richard MacCutchan17-Dec-12 22:19
mveRichard MacCutchan17-Dec-12 22:19 
GeneralRe: MSDN documentation for MFC OLE wrapper method/prperties Pin
ForNow18-Dec-12 2:28
MemberForNow18-Dec-12 2:28 
GeneralRe: MSDN documentation for MFC OLE wrapper method/prperties Pin
Richard MacCutchan18-Dec-12 2:54
mveRichard MacCutchan18-Dec-12 2:54 
Questionabout screen reader how to read PDF file Pin
BCN-16316-Dec-12 16:01
MemberBCN-16316-Dec-12 16:01 
AnswerRe: about screen reader how to read PDF file Pin
April Fans27-Dec-12 15:20
MemberApril Fans27-Dec-12 15:20 
GeneralRe: about screen reader how to read PDF file Pin
BCN-16327-Dec-12 17:41
MemberBCN-16327-Dec-12 17:41 
GeneralRe: about screen reader how to read PDF file Pin
April Fans27-Dec-12 20:34
MemberApril Fans27-Dec-12 20:34 
GeneralRe: about screen reader how to read PDF file Pin
BCN-16321-Jan-13 14:41
MemberBCN-16321-Jan-13 14:41 
Questionrange setvalue Pin
ForNow13-Dec-12 15:31
MemberForNow13-Dec-12 15:31 
SuggestionRe: range setvalue Pin
Richard MacCutchan13-Dec-12 22:52
mveRichard MacCutchan13-Dec-12 22:52 
GeneralRe: range setvalue Pin
ForNow14-Dec-12 8:00
MemberForNow14-Dec-12 8:00 
GeneralRe: range setvalue Pin
Richard MacCutchan14-Dec-12 21:40
mveRichard MacCutchan14-Dec-12 21:40 
GeneralRe: range setvalue Pin
ForNow15-Dec-12 15:23
MemberForNow15-Dec-12 15:23 
GeneralRe: range setvalue Pin
Richard MacCutchan15-Dec-12 21:09
mveRichard MacCutchan15-Dec-12 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.