|
-
April 14th, 2003, 09:42 AM
#2
Hi!!!
I just had the same problem and searched quite a time to solve it.
The trick is, as always, pretty simple as long as you know it:
The RANGE param isnt a real Range Object. Just try this:
//Prepare an "empty" range (where range at this time is meant as "string"
VARIANT var;
VariantInit(&var);
var.vt = VT_BSTR;
var.bstrVal = BSTR("");
//the call:
Selection.InsertFile("FILE.doc", &var,
COleVariant((long) 0, VT_BOOL),
COleVariant((long) 0, VT_BOOL),
COleVariant((long) 0, VT_BOOL)
);
This works just fine.
Greetz
Chameleon
Last edited by Chameleon; April 14th, 2003 at 09:45 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|