Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to keep graphics in Word
Message
From
10/08/2007 16:34:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/08/2007 15:52:19
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01247489
Message ID:
01247523
Views:
24
>>FWIW, using Office 2003, and its help is nearly worthless. There's close to zero information on how to anchor a canvas - except that the last parameter should be a range to anchor to. Well, it can't be just about any range, it needs to be document.selection (at least nothing else worked so far). Now I only need to find a way to not select the whole paragraph... or to just sacrifice an empty one.
>
>Is there a way to select "nothing" - i.e. an empty range, or a range where the start and stop are the same? The same idea as an actual Word document - you can have a current insertion point without any text or graphics being selected.

Yeah, got that too:

oWd.Selection.Range.SetRange(owd.selection.range.end, owd.selection.range.end)

pretty much selects the point after the last character. Though I'm not quite sure that this works, because it's still eating my last paragraph. Maybe it needs another .Select at the end of the line - next thing to try.

Nope, doesn't do anything. This does:

owd.selection.range.characters(owd.Selection.Range.Characters.Count).Select

selects the last character. As close to nothing as it gets. The .selection.range.start and .end seem to be read only - no error if I try to change them, but no effect either.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform