Code from slipstick.com/dev/formpicture.htm

  • Thread starter Thread starter Richard Pieri
  • Start date Start date
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
 
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
 
Back
Top