![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
I well know I can't get everything I want. Thanks for your interest. I've just tried this : Executed Sue's code in VBA (outside of the form), and added a save item. I run the code on the all folder. When I open any item, i get the picture properly displayed, and since the loading is not done at the item open, no request for saving. Works just like I wished it would... except if I restart Outlook, then I realised, that nothing was saved... it's like if what have been saved is a property for a control in each contact for as long as this outlook session last. I'm not surprised I expected nothing would "actually" be saved into the item. I'm more impressed by the fact that it "works" while the session last ! But it does not solve the issue : how to save a pic with an item without one offing and while using a custom form ? "Ken Slovak - [MVP - Outlook]" wrote: 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 |
#2
|
|||
|
|||
![]()
I can't think of anything else.
If you add a control to your custom form after it's published that will one-off the form. If you add the picture to the control and want it there always you must save the item so the picture remains. -- 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 ... Hi, I well know I can't get everything I want. Thanks for your interest. I've just tried this : Executed Sue's code in VBA (outside of the form), and added a save item. I run the code on the all folder. When I open any item, i get the picture properly displayed, and since the loading is not done at the item open, no request for saving. Works just like I wished it would... except if I restart Outlook, then I realised, that nothing was saved... it's like if what have been saved is a property for a control in each contact for as long as this outlook session last. I'm not surprised I expected nothing would "actually" be saved into the item. I'm more impressed by the fact that it "works" while the session last ! But it does not solve the issue : how to save a pic with an item without one offing and while using a custom form ? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Empty Dialog Box | Will T | Outlook - General Queries | 1 | March 29th 06 11:06 PM |
unable to open dialog box | rglion | Outlook - Calandaring | 4 | March 16th 06 10:11 AM |
Location info dialog box | kathrynatgwens | Outlook - General Queries | 1 | February 27th 06 06:54 PM |
Resource Scheduled dialog box | FBGWeezer | Outlook - Calandaring | 1 | February 24th 06 05:23 PM |
Word print dialog box | Martin | Outlook - Using Forms | 1 | January 31st 06 02:05 PM |