Foros del Web » Programando para Internet » ASPX (.net) »

.NET y calendario de Outlook 2003

Estas en el tema de .NET y calendario de Outlook 2003 en el foro de ASPX (.net) en Foros del Web. Hola a tod@s, He creado una aplicación asp.net para reservar salas de reuniones en la empresa y avisar a los convocados a las mismas vía ...
  #1 (permalink)  
Antiguo 20/12/2005, 09:23
 
Fecha de Ingreso: diciembre-2001
Mensajes: 150
Antigüedad: 22 años, 4 meses
Puntos: 1
.NET y calendario de Outlook 2003

Hola a tod@s,

He creado una aplicación asp.net para reservar salas de reuniones en la empresa y avisar a los convocados a las mismas vía e-mail.

El siguiente paso que me gustaría realizar es crear dicha cita en el calendario del outlook de cada usuario (se trata de una intranet en la que cada usuario está identificado y autenticado en la web).

Alguien ha trabajado desde .net (C#) con el calendario de Outlook 2003 ?

Cualquier idea será bienvenida.

Gracias

Korrikalari
  #2 (permalink)  
Antiguo 20/12/2005, 10:13
 
Fecha de Ingreso: noviembre-2005
Mensajes: 129
Antigüedad: 18 años, 5 meses
Puntos: 0
Sip, de hecho puedes crear los Eventos desde .net y que los usuarios al descargarlo, el Outlook automáticamnete agenda ese evento en su calendario, puedes ver la sgte página para que te des una idea de cómo lo puedes hacer:

//First thing you need to do is add a reference to Microsoft Outlook 11.0 Object Library. Then, create new instance of Outlook.Application object:

Outlook.Application outlookApp = new Outlook.Application ();

//Next, create an instance of AppointmentItem object and set the properties:

Outlook.AppointmentItem oAppointment = (Outlook.AppointmentItem) outlookApp.CreateItem (Outlook.OlItemType.olAppointmentItem);

oAppointment.Subject = "This is the subject for my appointment";
oAppointment.Body = "This is the body text for my appointment";
oAppointment.Location = "Appointment location";

// Set the start date
oAppointment.Start = Convert.ToDateTime ("10/10/2004 10:00:00 AM");
// End date
oAppointment.End = Convert.ToDateTime ("10/10/2004 2:00:00 PM");
// Set the reminder 15 minutes before start
oAppointment.ReminderSet = true;
oAppointment.ReminderMinutesBeforeStart = 15;

//Setting the sound file for a reminder:
set ReminderPlaySound = true
//set ReminderSoundFile to a filename.

//Setting the importance:
//use OlImportance enum to set the importance to low, medium or high

oAppointment.Importance = Outlook.OlImportance.olImportanceHigh;

/* OlBusyStatus is enum with following values:
olBusy
olFree
olOutOfOffice
olTentative
*/
oAppointment.BusyStatus = Outlook.OlBusyStatus.olBusy;

//Finally, save the appointment:

// Save the appointment
oAppointment.Save ();

// When you call the Save () method, the appointment is saved in Outlook. Another useful method is ForwardAsVcal () which can be used to send the Vcs file via email.

Outlook.MailItem mailItem = oAppointment.ForwardAsVcal ();
mailItem.To = "recipients email address";
mailItem.Send ();


Más información la puedes conseguir en esta página:

http://www.outlookcode.com/codedetail.aspx?id=775
  #3 (permalink)  
Antiguo 20/12/2005, 10:19
 
Fecha de Ingreso: noviembre-2005
Mensajes: 129
Antigüedad: 18 años, 5 meses
Puntos: 0
Otra opción si quieres algo un poco más sencillo y q puedas controlar, ve lo siguiente:

ronmuir | Posted 7:46am 23. April 2004 Server Time |

You can use vCalendar data.
It's a bit of a chore but it's possible.

Create an appointment in your outlook calendar and save it as a .VCS file. Send this .VCS file to notepad and it will look something like this:

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:1.0
BEGIN:VEVENT
DTSTART:20040426T070000Z
DTEND:20040426T073000Z
LOCATION;ENCODING=QUOTED-PRINTABLE:Test
TRANSP:1
UID:040000008200E00074C5B7101A82E0080000000000719C E84729C4010000000000000000100
0000062119D5F13781D499776057ADF3CB0C2
SUMMARY;ENCODING=QUOTED-PRINTABLE:Test
PRIORITY:3
END:VEVENT
END:VCALENDAR

What you will need to do is to get your ASP code to create a freefile of all your appointment data (location, start, end, date, etc) and save it in your webspace as something.vcs - the file should look like the example I posted. This can then be referenced as a hyperlink and when clicked the user will open an outlook appointment window which just needs the Save & Close button clicked.



Esto es con lo que yo había trabajado hace unos meses.

Un saludo!!!
  #4 (permalink)  
Antiguo 20/12/2005, 10:26
 
Fecha de Ingreso: diciembre-2001
Mensajes: 150
Antigüedad: 22 años, 4 meses
Puntos: 1
Hola 9.jorge,

Muy interesante lo que me has enviado. La primera opción me parece la más completa, por lo que comenzaré a trabajar con ella.

Muchas gracias.

Korrikalari
  #5 (permalink)  
Antiguo 03/02/2006, 18:04
 
Fecha de Ingreso: enero-2003
Mensajes: 243
Antigüedad: 21 años, 3 meses
Puntos: 0
Korrikalari, yo estaba tratando de armar algo como lo que tu has hecho, tendrás algun sitio de referencia como para orientarme?

Desde ya muchas gracias!
__________________
I'm Windows.
  #6 (permalink)  
Antiguo 08/02/2006, 08:10
 
Fecha de Ingreso: diciembre-2001
Mensajes: 150
Antigüedad: 22 años, 4 meses
Puntos: 1
Hola Windows,

Al final me decidí por la segunda opción que planteaba 9.jorge, esto es, generar un fichero .VCS que luego adjunto a un mail que envío al usuario. De esta forma, el usuario que recibe el mail, es el que decide si quiere incluir dicha cita en el Outlook o no quiere.

Un saludo

Korrikalari
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:48.