How to show a URL located picture referenced by an INCLUDEPICTURE field in a imageobject on a form

M

Marcel

Hi,

Word 2002 SP3

I copied from IE6 a picture for testing in a document with the following
HYPERLINK:

{ HYPERLINK
"http://office.microsoft.com/search/redir.aspx?AssetID=XT011250231043&Origin=HH010686521043&CTT=5"
\o "Professionele drukkerij: (c) James Hardy/PhotoAlto/PictureQuest" }

If I put the cursor before the H of HYPERLINK and push Shif+F9 the field is
transformed into the next INCLUDEPICTURE code:

{ INCLUDEPICTURE
"http://office.microsoft.com/global/images/default.aspx?assetid=ZA011190561043"
\* MERGEFORMATINET }

I've created a Form with a picture object that shows each picture in my
document that has a reference with { INCLUDEPICTURE ...} field at my hard
disk. Everything goes well except when the picture has an URL reference.

Me.Image1.Picture = LoadPicture("C:\\Documents and Settings\\Marcel\\Mijn
documenten\\Mijn afbeeldingen\\home.jpg")

works well but

Me.Image1.Picture =
LoadPicture("http://office.microsoft.com/global/images/default.aspx?assetid=ZA011190561043")

crashes.

Does anybody know how I can get a picture with an URL reference shown in the
picture object on my Form.

Regards,

Marcel
 
M

Marcel

Marcel said:
Hi,

Word 2002 SP3

I copied from IE6 a picture for testing in a document with the following
HYPERLINK:

{ HYPERLINK
"http://office.microsoft.com/search/redir.aspx?AssetID=XT011250231043&Origin=HH010686521043&CTT=5"
\o "Professionele drukkerij: (c) James Hardy/PhotoAlto/PictureQuest" }

If I put the cursor before the H of HYPERLINK and push Shif+F9 the field
is transformed into the next INCLUDEPICTURE code:

{ INCLUDEPICTURE
"http://office.microsoft.com/global/images/default.aspx?assetid=ZA011190561043"
\* MERGEFORMATINET }

I've created a Form with a picture object that shows each picture in my
document that has a reference with { INCLUDEPICTURE ...} field at my hard
disk. Everything goes well except when the picture has an URL reference.

Me.Image1.Picture = LoadPicture("C:\\Documents and Settings\\Marcel\\Mijn
documenten\\Mijn afbeeldingen\\home.jpg")

works well but

Me.Image1.Picture =
LoadPicture("http://office.microsoft.com/global/images/default.aspx?assetid=ZA011190561043")

crashes.

Does anybody know how I can get a picture with an URL reference shown in
the picture object on my Form.

Regards,

Marcel

I got the answer. It can't be done with loadpicture(). I need WinHTTP to
download the picture and save it to disk and open it with loadpicture().
WinHTTP is part of the 2003 Server Resource Kit Tools.

Regards,

Marcel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top