Click here to Skip to main content
15,506,675 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 23:20
mveRichard MacCutchan7-Jan-13 23:20 
QuestionCreating .OCX file hangs Pin
ForNow1-Jan-13 18:44
ForNow1-Jan-13 18:44 
QuestionGetIDsOfNames returning -1 Pin
ForNow27-Dec-12 13:28
ForNow27-Dec-12 13:28 
AnswerRe: GetIDsOfNames returning -1 Pin
Richard MacCutchan27-Dec-12 22:48
mveRichard MacCutchan27-Dec-12 22:48 
QuestionMixing native OLE with MFC interface/wrappers Pin
ForNow26-Dec-12 16:30
ForNow26-Dec-12 16:30 
AnswerRe: Mixing native OLE with MFC interface/wrappers Pin
DriveByCoder24-Mar-15 8:41
professionalDriveByCoder24-Mar-15 8:41 
Question_WorkSheet::Paste usage Pin
ForNow19-Dec-12 14:01
ForNow19-Dec-12 14:01 
AnswerRe: _WorkSheet::Paste usage Pin
Jochen Arndt19-Dec-12 22:45
professionalJochen Arndt19-Dec-12 22: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 6:21
ForNow20-Dec-12 6:21 
GeneralRe: _WorkSheet::Paste usage Pin
Jochen Arndt20-Dec-12 22:04
professionalJochen Arndt20-Dec-12 22:04 
QuestionMSDN documentation for MFC OLE wrapper method/prperties Pin
ForNow17-Dec-12 14:10
ForNow17-Dec-12 14:10 
AnswerRe: MSDN documentation for MFC OLE wrapper method/prperties Pin
Richard MacCutchan17-Dec-12 23:19
mveRichard MacCutchan17-Dec-12 23:19 
GeneralRe: MSDN documentation for MFC OLE wrapper method/prperties Pin
ForNow18-Dec-12 3:28
ForNow18-Dec-12 3:28 
GeneralRe: MSDN documentation for MFC OLE wrapper method/prperties Pin
Richard MacCutchan18-Dec-12 3:54
mveRichard MacCutchan18-Dec-12 3:54 
Questionabout screen reader how to read PDF file Pin
BCN-16316-Dec-12 17:01
BCN-16316-Dec-12 17:01 
AnswerRe: about screen reader how to read PDF file Pin
April Fans27-Dec-12 16:20
April Fans27-Dec-12 16:20 
GeneralRe: about screen reader how to read PDF file Pin
BCN-16327-Dec-12 18:41
BCN-16327-Dec-12 18:41 
GeneralRe: about screen reader how to read PDF file Pin
April Fans27-Dec-12 21:34
April Fans27-Dec-12 21:34 
GeneralRe: about screen reader how to read PDF file Pin
BCN-16321-Jan-13 15:41
BCN-16321-Jan-13 15:41 
Questionrange setvalue Pin
ForNow13-Dec-12 16:31
ForNow13-Dec-12 16:31 
SuggestionRe: range setvalue Pin
Richard MacCutchan13-Dec-12 23:52
mveRichard MacCutchan13-Dec-12 23:52 
GeneralRe: range setvalue Pin
ForNow14-Dec-12 9:00
ForNow14-Dec-12 9:00 
GeneralRe: range setvalue Pin
Richard MacCutchan14-Dec-12 22:40
mveRichard MacCutchan14-Dec-12 22:40 
GeneralRe: range setvalue Pin
ForNow15-Dec-12 16:23
ForNow15-Dec-12 16:23 
GeneralRe: range setvalue Pin
Richard MacCutchan15-Dec-12 22:09
mveRichard MacCutchan15-Dec-12 22: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.