A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

Custom form could not be opened





 
 
Thread Tools Display Modes
  #21  
Old August 14th 08, 09:54 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Custom form could not be opened

Item.Save.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"masani paresh" wrote in message
...
Ken, Please ignore previous update. It was duplicate.

Could you tell me how to save the item.recipient after adding it.
Item.Recipient.Save is not working. I tried to find out it from object
browser but i could not get it.

Thanks,
Paresh


Ads
  #22  
Old August 22nd 08, 09:18 AM posted to microsoft.public.outlook.program_forms
masani paresh[_2_]
external usenet poster
 
Posts: 58
Default Custom form could not be opened

Ken,

If I do Item.Save after adding item into Item.Recipient then It is not
displaying free/busy status for any conf rooms irrespective of whether I
touched the Scheduling tab or not. :-(

Please refer my code.
Sub CommandButton2_Click

Dim confRoomName
If Not IsNull(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value) Then
If Not InStr(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value, "(Free)") = 0 Then
confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value, "(Free)", -1, 1)
Else
confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value, "(Busy)", -1, 1)
End If
Item.Recipients.Add(confRoomName(0))
Item.Save
Else
MsgBox "Please select any conference room"
End If

End Sub

Thanks,
Paresh


"Ken Slovak - [MVP - Outlook]" wrote:

Item.Save.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"masani paresh" wrote in message
...
Ken, Please ignore previous update. It was duplicate.

Could you tell me how to save the item.recipient after adding it.
Item.Recipient.Save is not working. I tried to find out it from object
browser but i could not get it.

Thanks,
Paresh



  #23  
Old August 22nd 08, 04:19 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
Default Custom form could not be opened

I have no idea what that code is trying to do or how it relates to free/busy
information. To get free/busy information you either call for
Recipient.FreeBusy or AddressEntry.GetFreeBusy.

So if you add a recipient, then resolve it and then query its F/B
information you should get it. Or you can get the AddressEntry objects for
all resources you are interested in and then call GetFreeBusy() for those
AddressEntry objects.

This really seems to be quite removed from the issue you originally posted,
that you couldn't open a custom form. It's dragged on for so long and with
so many changes of problems that you might be best off just starting a new
thread and explaining what problem you face currently there since at this
point I have no idea what the problem is.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"masani paresh" wrote in message
...
Ken,

If I do Item.Save after adding item into Item.Recipient then It is not
displaying free/busy status for any conf rooms irrespective of whether I
touched the Scheduling tab or not. :-(

Please refer my code.
Sub CommandButton2_Click

Dim confRoomName
If Not IsNull(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value) Then
If Not InStr(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value, "(Free)") = 0 Then
confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value, "(Free)", -1, 1)
Else
confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference
Room").Controls("ListBox1").Value, "(Busy)", -1, 1)
End If
Item.Recipients.Add(confRoomName(0))
Item.Save
Else
MsgBox "Please select any conference room"
End If

End Sub

Thanks,
Paresh


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Form can’t be opened runci Outlook - Using Forms 0 December 20th 07 04:41 AM
Outlook 2007: Why get message "custom form cannot be opened"? Nick Piazza Outlook - General Queries 1 February 17th 07 07:16 AM
custom button not appearing when a mail item is opened Pankaj Add-ins for Outlook 1 January 31st 07 04:05 PM
Custom Outlook forms blank when opened D.Farns Outlook - Using Forms 2 December 14th 06 04:35 PM
"The custom form could not be opened" What is it talking about? Sylvia Outlook - Using Contacts 10 July 10th 06 05:15 PM


All times are GMT +1. The time now is 12:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Pacotes Carnaval Salvador - Online Advertising - Secured Loans - Loans - Electronics