Outlook View Control

S

sanjeev

I am trying to publish a Calender for a specific user online. I would like to
show all of the events that have been setup for this user on the calender
that is rendered without giving any of the users who are viewing it the right
to Edit existing or Add new events. I have tried changing some of the
properties of the calender but without any success. Would appreciate if
someone could help. Below is the code that is showing the calender:

<html>
<head>
<script langauge="javascript">
function changeView(strUserName){
var olFolderCalendar = 9;
var viewCtlFolder = document.getElementById('ViewCtlFolder');
viewCtlFolder.OpenSharedDefaultFolder(strUserName, olFolderCalendar);
}
</script>
<SCRIPT language=VBScript>
Sub Window_onLoad()
ViewCtlFolder.Folder = "Calendar"
ViewCtlFolder.Namespace = "MAPI"
ViewCtlFolder.Restriction = ""
ViewCtlFolder.DeferUpdate = "True"
ViewCtlFolder.contentEditable = "FALSE"
End Sub
</SCRIPT>


</head>
<body>
<object classid="CLSID:0006F063-0000-0000-C000-000000000046" width="100%"
height="80%" id="ViewCtlFolder"

codebase="http://activex.microsoft.com/activex/controls/office/outlctlx.CAB#ver=9,0,0,3203">

</object>

<select name="namePicker" id="namePicker"
onchange="changeView(this.options(this.selectedIndex).value);">
<option value="">Select...</option>
<option value="Username">Conference Room</option>
<option value="Username">Show Room</option>
</select>
</body>
</html>
 
D

Diane Poremsky [MVP]

What happens when you publish it online? What permissions do the others have
for the calendar?

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
(e-mail address removed)

EMO - a weekly newsletter about Outlook and Exchange:
(e-mail address removed)

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point your
newsreader to msnews.microsoft.com.
 
S

sanjeev

The html page with the OVC is accessed through the public folders. When it is
published I see the calender howevever it is editable by anyone viewing it.
The account being used for this calendar is a resource account. However I
want it to be in ReadOnly mode when it is accessed through the Public
Folders.

Diane Poremsky said:
What happens when you publish it online? What permissions do the others have
for the calendar?

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
(e-mail address removed)

EMO - a weekly newsletter about Outlook and Exchange:
(e-mail address removed)

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point your
newsreader to msnews.microsoft.com.


sanjeev said:
I am trying to publish a Calender for a specific user online. I would like
to
show all of the events that have been setup for this user on the calender
that is rendered without giving any of the users who are viewing it the
right
to Edit existing or Add new events. I have tried changing some of the
properties of the calender but without any success. Would appreciate if
someone could help. Below is the code that is showing the calender:

<html>
<head>
<script langauge="javascript">
function changeView(strUserName){
var olFolderCalendar = 9;
var viewCtlFolder = document.getElementById('ViewCtlFolder');
viewCtlFolder.OpenSharedDefaultFolder(strUserName, olFolderCalendar);
}
</script>
<SCRIPT language=VBScript>
Sub Window_onLoad()
ViewCtlFolder.Folder = "Calendar"
ViewCtlFolder.Namespace = "MAPI"
ViewCtlFolder.Restriction = ""
ViewCtlFolder.DeferUpdate = "True"
ViewCtlFolder.contentEditable = "FALSE"
End Sub
</SCRIPT>


</head>
<body>
<object classid="CLSID:0006F063-0000-0000-C000-000000000046" width="100%"
height="80%" id="ViewCtlFolder"

codebase="http://activex.microsoft.com/activex/controls/office/outlctlx.CAB#ver=9,0,0,3203">

</object>

<select name="namePicker" id="namePicker"
onchange="changeView(this.options(this.selectedIndex).value);">
<option value="">Select...</option>
<option value="Username">Conference Room</option>
<option value="Username">Show Room</option>
</select>
</body>
</html>
 
D

Diane Poremsky [MVP]

The control uses the same permissions as the mailbox - so you need to remove
the edit permissions from the people who will be viewing it.

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
(e-mail address removed)

EMO - a weekly newsletter about Outlook and Exchange:
(e-mail address removed)

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point your
newsreader to msnews.microsoft.com.


sanjeev said:
The html page with the OVC is accessed through the public folders. When it
is
published I see the calender howevever it is editable by anyone viewing
it.
The account being used for this calendar is a resource account. However I
want it to be in ReadOnly mode when it is accessed through the Public
Folders.

Diane Poremsky said:
What happens when you publish it online? What permissions do the others
have
for the calendar?

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
(e-mail address removed)

EMO - a weekly newsletter about Outlook and Exchange:
(e-mail address removed)

You can access this newsgroup by visiting
http://www.microsoft.com/office/community/en-us/default.mspx or point
your
newsreader to msnews.microsoft.com.


sanjeev said:
I am trying to publish a Calender for a specific user online. I would
like
to
show all of the events that have been setup for this user on the
calender
that is rendered without giving any of the users who are viewing it the
right
to Edit existing or Add new events. I have tried changing some of the
properties of the calender but without any success. Would appreciate if
someone could help. Below is the code that is showing the calender:

<html>
<head>
<script langauge="javascript">
function changeView(strUserName){
var olFolderCalendar = 9;
var viewCtlFolder = document.getElementById('ViewCtlFolder');
viewCtlFolder.OpenSharedDefaultFolder(strUserName, olFolderCalendar);
}
</script>
<SCRIPT language=VBScript>
Sub Window_onLoad()
ViewCtlFolder.Folder = "Calendar"
ViewCtlFolder.Namespace = "MAPI"
ViewCtlFolder.Restriction = ""
ViewCtlFolder.DeferUpdate = "True"
ViewCtlFolder.contentEditable = "FALSE"
End Sub
</SCRIPT>


</head>
<body>
<object classid="CLSID:0006F063-0000-0000-C000-000000000046"
width="100%"
height="80%" id="ViewCtlFolder"

codebase="http://activex.microsoft.com/activex/controls/office/outlctlx.CAB#ver=9,0,0,3203">

</object>

<select name="namePicker" id="namePicker"
onchange="changeView(this.options(this.selectedIndex).value);">
<option value="">Select...</option>
<option value="Username">Conference Room</option>
<option value="Username">Show Room</option>
</select>
</body>
</html>
 

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