Group:  General ยป microsoft.public.officedev
Thread: plotting picture coordinates in word 2k3

Geek News

plotting picture coordinates in word 2k3
Sandeep Thoppil 6/25/2007 6:30:00 AM
Hi

I have req where I prompt the user to browse for an image, which will be
copied to a folder and as the user starts fillin in the word template I need
to provide an interface for the user to select a particular coordinate in
that image.

I am right now using a macro to browse the image and thereafter to create a
folder and add the same into that. The image name will also be there in the
document.

To select a coordinate I am using a form wth image control and use the
mouse down and up event and makes the user to grab the x&y coordinates.

But the coordinates plotted by the user is not accurate comparing to the one
i can get using ms paint application .Image control does not have a scroll
bar so as to provide a scroll when the image goes beyond the size of image
control.

Could somebody find me a solution for this.

TIA
--
Sandeep Thoppil

RE: plotting picture coordinates in word 2k3
Sandeep Thoppil 6/30/2007 7:32:09 AM
Uhh

The VBA is returning the coordinates as Points, use pointsToPixel method to
convert it to pixel.

--
Sandeep Thoppil


"Sandeep Thoppil" wrote:

[Quoted Text]
> Hi
>
> I have req where I prompt the user to browse for an image, which will be
> copied to a folder and as the user starts fillin in the word template I need
> to provide an interface for the user to select a particular coordinate in
> that image.
>
> I am right now using a macro to browse the image and thereafter to create a
> folder and add the same into that. The image name will also be there in the
> document.
>
> To select a coordinate I am using a form wth image control and use the
> mouse down and up event and makes the user to grab the x&y coordinates.
>
> But the coordinates plotted by the user is not accurate comparing to the one
> i can get using ms paint application .Image control does not have a scroll
> bar so as to provide a scroll when the image goes beyond the size of image
> control.
>
> Could somebody find me a solution for this.
>
> TIA
> --
> Sandeep Thoppil
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net