Q
queisser
Hi all,
I'm writing a C# app that uses copy/paste to put graphics in a window.
My copy/paste logic first looks for Metafile, then for bitmap.
Here's the problem: when I copy and paste a WMF clip from the organizer
(in Word or standalone) into my app I get a nice high-res image the
first time I copy a particular clip. The second time I get a very
low-res copy, presumably the same resolution as the thumbnail. In Word
or PowerPoint it works every time.
Here's how you can reproduce it without my app:
1) Open Paint (from Start|All Programs|Accessories)
2) Open Clip Organizer (from Start|All Programs|Microsoft
Office|Microsoft Office Tools|Clip Organizer). You can also use the
Clip Organizer from within one of the Office programs with the
"Insert|Picture|Clip Art" menu.
3) Select a clip from Clip Organizer that has WMF format
4) Right-click on the clip or click on the arrow on the right side of
the clip
5) Select "Copy"
6) Paste the clip into Paint
7) Select a different WMF format clip and repeat steps 3-6
8) Select the same clip as in step 2) and repeat steps 3-6
Now on my machine (Windows XP SP2 on HP laptop) I get a low-res bitmap
on all but the first selections of a WMF clip. Other Office products
don't have this problem so they must paste the underlying file
automatically instead of pasting the Metafile.
Any ideas why this is happening?
Thanks,
Andrew Queisser
I'm writing a C# app that uses copy/paste to put graphics in a window.
My copy/paste logic first looks for Metafile, then for bitmap.
Here's the problem: when I copy and paste a WMF clip from the organizer
(in Word or standalone) into my app I get a nice high-res image the
first time I copy a particular clip. The second time I get a very
low-res copy, presumably the same resolution as the thumbnail. In Word
or PowerPoint it works every time.
Here's how you can reproduce it without my app:
1) Open Paint (from Start|All Programs|Accessories)
2) Open Clip Organizer (from Start|All Programs|Microsoft
Office|Microsoft Office Tools|Clip Organizer). You can also use the
Clip Organizer from within one of the Office programs with the
"Insert|Picture|Clip Art" menu.
3) Select a clip from Clip Organizer that has WMF format
4) Right-click on the clip or click on the arrow on the right side of
the clip
5) Select "Copy"
6) Paste the clip into Paint
7) Select a different WMF format clip and repeat steps 3-6
8) Select the same clip as in step 2) and repeat steps 3-6
Now on my machine (Windows XP SP2 on HP laptop) I get a low-res bitmap
on all but the first selections of a WMF clip. Other Office products
don't have this problem so they must paste the underlying file
automatically instead of pasting the Metafile.
Any ideas why this is happening?
Thanks,
Andrew Queisser