View Single Post
  #4  
Old April 25th 06, 02:45 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default bypassing save dialog box

Sue's code uses an Image control. You have to use an image control or
something like that or the built-in control for Outlook 2003. If you modify
an item the user will get prompted, no matter what you do if you don't save
the item. If you save something "within the item" you are saving the item.

Something has to give, you can't have everything you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"philippe" wrote in message
...
Thank you Ken.

I have to use a custom form, and thus can't use the picture control hence
my
problem.
I do not save the item in the code for users on whose machines the code
will
execute won't have writing permissions to the public folder.

I wonder if it is possible to use a picture control, load a pic in it, and
get it saved within the item (without one offing the form)... then I could
prepare all items in VBA on the public folder, and would not need any code
to
execute on user's machines (which I prefer).

Obviously the AddPicture method only refers to THE picture control that
one
can see on the contact form (as long as one does not modify the general
tab).
As a matter of fact : I can't see in the method description any argument
dedicated to tell which picture control to use as a destination.

Sue Mosher uses a load method on a control of what seems to be an
undefined
type :
Function Item_Open()
Set objInsp = Item.GetInspector
Set objPage = objInsp.ModifiedFormPages("General")
Set imgPicture = objPage.Controls("Image4")
If Item.BillingInformation "" Then
imgPicture.Picture = _
LoadPicture(Item.CustomFieldPictureAddress)
End If
End Function

I'm thus have the feeling that it's not possible to have a photograph
saved
into an item and displayed in a picture control.
Thus my original questions :
- to hide the saving prompt to users or
- find a way to control to save things in a notes control - I don't
understand how outlook stores pictures or the content of the notes.

Thanks to you or anyone for reading up to this point.
Regards,
Philippe


Ads