Hi,
Unfortunately this is the correct behavior, Calendar Gadget can only be an
all-day event at the moment.
Austin
On Mon, Feb 25, 2008 at 5:09 PM, sunitha <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am trying to display the google gadget in calender at the specic
> date and time.
>
> But it is dispplaying only for day not at the time.
>
> Here is my code
>
> CalendarService calenderService = new CalendarService("exampleCo-
> exampleApp-1");
> calenderService.setUserCredentials(userName, password);
>
> WebContentLink wc = new WebContentLink();
> wc.Title = "World Cup";
> wc.Type = "image/gif";
> wc.Url = docUrl;
> wc.Icon = "http://www.google.com/calendar/images/google-
> holiday.gif <http://www.google.com/calendar/images/google-holiday.gif>";
> wc.Width = 276;
> wc.Height = 120;
>
> Google.GData.Calendar.EventEntry myEntry = new
> Google.GData.Calendar.EventEntry(/*docName, "desc"*/);
> //myEntry.QuickAdd = true;
> myEntry.WebContentLink = wc;
>
> myEntry.Title.Text = docName;
> //myEntry.Content.Content = docUrl;
> //myEntry.Summary.Text = docName;
> Uri postUri = new Uri("http://www.google.com/calendar/
> feeds/default/private/full<http://www.google.com/calendar/feeds/default/private/full>
> ");
>
> When eventTime = new When(DateTime.Now, DateTime.Now);
> myEntry.Times.Add(eventTime);
>
> Where eventLocation = new Where();
> eventLocation.ValueString = "South Tennis Courts";
> myEntry.Locations.Add(eventLocation);
>
>
> Google.GData.Calendar.EventEntry createdEntry =
> (Google.GData.Calendar.EventEntry)calenderService.Insert(postUri,
> myEntry);
>
> I am setting the datetime to When object. But still the google gadget
> icon is getting displyed in the top not at that time.
>
> Thanks for help.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---