Code from slipstick.com/dev/formpicture.htm

R

Richard Pieri

I am trying to put a picture into a custom contact form I
have done whats listed at
http://www.slipstick.com/dev/formpicture.htm

but I keep getting a Syntex error Line No:12
is there a problem with the way the code is posted or did
I do something wrong?

Form is IPM.Contact.Employee info(Published in
Organizational Library)
2nd page of form is named Picture
Image control is named imgPicture(in name field in
advanced properties)
Code entered is below

Thank You in advance


Function Item_Open()

Set objInsp = Item.GetInspector

Set objPage = objInsp.ModifiedFormPages("Picture")

Set imgPicture = objPage.Controls("imgPicture")

If Item.BillingInformation <> "" Then

imgPicture.Picture = _

LoadPicture(Item.BillingInformation)

End If

End Function
 
S

Sue Mosher [MVP]

Delete the blank lines. They're artifacts from copying from paragraphs in an HTML page.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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